trying different stöff
This commit is contained in:
@@ -21,8 +21,8 @@ pub async fn get_gpu_info() -> Result<GpuInfo, Box<dyn Error>> {
|
||||
name: Some(gpu_name),
|
||||
current_load: get_gpu_load(&device).ok(),
|
||||
current_temp: get_gpu_temp(&device).ok(),
|
||||
vram_total: Some(total as f64),
|
||||
vram_used: Some(used as f64),
|
||||
vram_total: Some(total),
|
||||
vram_used: Some(used),
|
||||
})
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ fn fallback_gpu_name() -> Option<String> {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
let output = std::process::Command::new("wmic")
|
||||
.args(&["path", "win32_VideoController", "get", "name"])
|
||||
.args(["path", "win32_VideoController", "get", "name"])
|
||||
.output()
|
||||
.ok()?;
|
||||
Some(
|
||||
|
Reference in New Issue
Block a user