Эх сурвалжийг харах

Fix status file not being reset

Thomas Dy 9 жил өмнө
parent
commit
3e62988a51

+ 1 - 1
src/sensors/tp_battery.rs

@@ -113,7 +113,7 @@ fn read_stats(files: &mut StatFiles) -> Result<Stats, io::Error> {
     s.clear();
 
     assert!(files.status.read_to_string(&mut s).is_ok());
-    assert!(files.capacity.seek(io::SeekFrom::Start(0)).is_ok());
+    assert!(files.status.seek(io::SeekFrom::Start(0)).is_ok());
 
     Ok(Stats {
         capacity: i,