added graceful fallback if nvml doesnt hit
This commit is contained in:
@@ -61,12 +61,7 @@ pub fn get_gpu_metrics() -> Result<(f64, f64, f64, f64), Box<dyn Error>> {
|
||||
return Err(anyhow::anyhow!("Failed to initialize NVML").into());
|
||||
};
|
||||
|
||||
Ok((
|
||||
gpu_temp as f64,
|
||||
gpu_load as f64,
|
||||
vram_used as f64,
|
||||
vram_total as f64,
|
||||
))
|
||||
Ok((gpu_temp, gpu_load, vram_used, vram_total))
|
||||
}
|
||||
|
||||
fn detect_gpu_name() -> String {
|
||||
|
Reference in New Issue
Block a user