summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2019-07-25 10:01:39 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2019-07-25 10:03:06 +0800
commit44aa8997e3b18214f7177f7c6cc36a25daafbf24 (patch)
tree08f841b01db7c8a51558e17423532abefb057c38
parentabefc91fdfe2d7a168dce4b9bda8c9d0cc98e0dd (diff)
A single decimal slot for percentages; Fixes #26
On top of that, I think less information can be more.
-rw-r--r--src/interactive/app/bytevis.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive/app/bytevis.rs b/src/interactive/app/bytevis.rs
index 14c6201..a676fcd 100644
--- a/src/interactive/app/bytevis.rs
+++ b/src/interactive/app/bytevis.rs
@@ -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)
}
}