Skip to content

Commit 3f469a2

Browse files
committed
Fix bug where usage could be too precise
1 parent 63520ed commit 3f469a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pISO/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl render::Render for Stats {
2828
fn render(&self, _manager: &DisplayManager, _window: &Window) -> error::Result<bitmap::Bitmap> {
2929
let mut base = bitmap::Bitmap::new(0, 0);
3030
let percent_free = 100.0 - self.vg.pool()?.data_percent;
31-
let contents = font::render_text(format!("{}% Free", percent_free));
31+
let contents = font::render_text(format!("{}% Free", percent_free as u64));
3232
base.blit(&contents, (0, 0));
3333
Ok(base.rotate(bitmap::Direction::Left))
3434
}

0 commit comments

Comments
 (0)