diff --git a/src/utils/gpu/mod.rs b/src/utils/gpu/mod.rs index 94d82ef4..c269ab07 100644 --- a/src/utils/gpu/mod.rs +++ b/src/utils/gpu/mod.rs @@ -56,20 +56,11 @@ impl GpuData { pub fn new(gpu: &Gpu) -> Self { let pci_slot = gpu.pci_slot(); - let usage_fraction = gpu - .usage() - .map(|usage| (usage / 100.0).clamp(0.0, 1.0)) - .ok(); - - let encode_fraction = gpu - .encode_usage() - .map(|usage| (usage / 100.0).clamp(0.0, 1.0)) - .ok(); - - let decode_fraction = gpu - .decode_usage() - .map(|usage| (usage / 100.0).clamp(0.0, 1.0)) - .ok(); + let usage_fraction = gpu.usage().map(|usage| usage.clamp(0.0, 1.0)).ok(); + + let encode_fraction = gpu.encode_usage().map(|usage| usage.clamp(0.0, 1.0)).ok(); + + let decode_fraction = gpu.decode_usage().map(|usage| usage.clamp(0.0, 1.0)).ok(); let total_vram = gpu.total_vram().ok(); let used_vram = gpu.used_vram().ok();