Update src/main.rs

Co-authored-by: Richard Kuhnt <r15ch13+git@gmail.com>
This commit is contained in:
Adrian Woźniak 2021-07-31 20:34:41 +02:00 committed by GitHub
parent 73369978ca
commit 6eeeb3a487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,7 @@ fn service(config: Config) -> std::io::Result<()> {
let last = *cache.entry(*hw_mon.card).or_insert(1_000f64); let last = *cache.entry(*hw_mon.card).or_insert(1_000f64);
if ((last - 0.001f64)..(last + 0.001f64)).contains(&gpu_temp) { if ((last - 0.001f64)..(last + 0.001f64)).contains(&gpu_temp) {
log::info!("temperature didn't changed"); log::info!("Temperature didn't change");
continue; continue;
}; };
let speed = config.speed_for_temp(gpu_temp); let speed = config.speed_for_temp(gpu_temp);