From 1101c7eabedf2b9436685244a4c73c24c87c6070 Mon Sep 17 00:00:00 2001 From: Shuzhengz Date: Tue, 21 Jun 2022 18:38:57 -0700 Subject: [PATCH] hotfix --- src/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.rs b/src/system.rs index 2f89a110..76091812 100644 --- a/src/system.rs +++ b/src/system.rs @@ -204,7 +204,7 @@ pub fn check_turbo_enabled() -> Result { pub fn check_bat_cond() -> Result { let bat_cond_calc: f32 = - (read_bat_energy_full(false).unwrap() / read_bat_energy_full(true).unwrap()) as f32; + read_bat_energy_full(false).unwrap() as f32 / read_bat_energy_full(true).unwrap() as f32; Ok(bat_cond_calc) }