trying different stöff

This commit is contained in:
2025-08-09 17:52:01 +02:00
parent a8cfbbf766
commit cfd9fef3e9
6 changed files with 17 additions and 21 deletions

View File

@@ -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(