From 3f469a2c7353801b95347e8dee5acaeaf1b9c59e Mon Sep 17 00:00:00 2001 From: Adam Schwalm Date: Tue, 30 Oct 2018 21:04:24 -0500 Subject: [PATCH] Fix bug where usage could be too precise --- pISO/src/stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pISO/src/stats.rs b/pISO/src/stats.rs index 15a0adb..f1adc38 100644 --- a/pISO/src/stats.rs +++ b/pISO/src/stats.rs @@ -28,7 +28,7 @@ impl render::Render for Stats { fn render(&self, _manager: &DisplayManager, _window: &Window) -> error::Result { let mut base = bitmap::Bitmap::new(0, 0); let percent_free = 100.0 - self.vg.pool()?.data_percent; - let contents = font::render_text(format!("{}% Free", percent_free)); + let contents = font::render_text(format!("{}% Free", percent_free as u64)); base.blit(&contents, (0, 0)); Ok(base.rotate(bitmap::Direction::Left)) }