From 44aa8997e3b18214f7177f7c6cc36a25daafbf24 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 25 Jul 2019 10:01:39 +0800 Subject: A single decimal slot for percentages; Fixes #26 On top of that, I think less information can be more. --- src/interactive/app/bytevis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } } -- cgit v1.2.3