From c54bdc0af0d1bfc505ecd5940206b339d14d8b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Wo=C5=BAniak?= Date: Thu, 29 Jul 2021 10:21:26 +0200 Subject: [PATCH] Update main.rs --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5c36838..19e6087 100644 --- a/src/main.rs +++ b/src/main.rs @@ -308,7 +308,7 @@ fn service(config: Config) -> std::io::Result<()> { continue; } - if let Err(e) = controller.hw_mon.set_speed(target_pwm as u64) { + if let Err(e) = controller.hw_mon.set_speed(target_pwm) { log::error!("Failed to change speed to {}. {:?}", target_pwm, e); } controller.last_temp = gpu_temp; @@ -363,7 +363,7 @@ fn monitor_cards(config: Config) -> std::io::Result<()> { println!( " | {:>5.2} | {:>4} | {:>4} | {:>4} | {:>4} | {:>3}", card.hw_mon.gpu_temp().unwrap_or_default(), - card.hw_mon.fan_speed().unwrap_or_default(), + card.hw_mon.pwm_speed().unwrap_or_default(), card.hw_mon.pwm_min(), card.hw_mon.pwm_max(), card.hw_mon.pwm_speed().unwrap_or_default(),