From 03379014b73adf4c7f5a1661623f7e24340f7117 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 31 May 2020 21:16:51 +0000 Subject: [PATCH] Fix load tile --- src/tiles/load.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)