Skip to content

Commit

Permalink
Fix bug where usage could be too precise
Browse files Browse the repository at this point in the history
  • Loading branch information
ALSchwalm committed Oct 31, 2018
1 parent 63520ed commit 3f469a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pISO/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl render::Render for Stats {
fn render(&self, _manager: &DisplayManager, _window: &Window) -> error::Result<bitmap::Bitmap> {
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))
}
Expand Down

0 comments on commit 3f469a2

Please sign in to comment.