We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63520ed commit 3f469a2Copy full SHA for 3f469a2
pISO/src/stats.rs
@@ -28,7 +28,7 @@ impl render::Render for Stats {
28
fn render(&self, _manager: &DisplayManager, _window: &Window) -> error::Result<bitmap::Bitmap> {
29
let mut base = bitmap::Bitmap::new(0, 0);
30
let percent_free = 100.0 - self.vg.pool()?.data_percent;
31
- let contents = font::render_text(format!("{}% Free", percent_free));
+ let contents = font::render_text(format!("{}% Free", percent_free as u64));
32
base.blit(&contents, (0, 0));
33
Ok(base.rotate(bitmap::Direction::Left))
34
}
0 commit comments