diff --git a/src/tiles/load.rs b/src/tiles/load.rs index 526d8f6..33b870a 100644 --- a/src/tiles/load.rs +++ b/src/tiles/load.rs @@ -30,9 +30,9 @@ impl Load { async fn run(&self) -> Result<(), Box> { let mut timer = interval(Duration::from_secs(5)); - let mut raw = String::new(); loop { timer.tick().await; + let mut raw = String::new(); File::open("/proc/loadavg") .await? .read_to_string(&mut raw)