Skip to content

Commit

Permalink
A single decimal slot for percentages; Fixes #26
Browse files Browse the repository at this point in the history
On top of that, I think less information can be more.
  • Loading branch information
Sebastian Thiel committed Jul 25, 2019
1 parent abefc91 commit 44aa899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interactive/app/bytevis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl DisplayByteVisualization {
Ok(())
}
fn make_percentage(f: &mut fmt::Formatter, percentage: f32) -> Result<(), fmt::Error> {
write!(f, " {:>5.02}% ", percentage * 100.0)
write!(f, " {:>5.01}% ", percentage * 100.0)
}
}

Expand Down

0 comments on commit 44aa899

Please sign in to comment.