summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Wach <pwach@bloomberg.net>2023-11-19 21:57:12 +0000
committerPiotr Wach <pwach@bloomberg.net>2023-11-19 21:57:12 +0000
commitb3bb85177d2fc4b299a9d82313832be96b34c3b6 (patch)
treed2c0106bfd0154a8e7fdf45059ef50c430d78f19
parent8c02612887a49d72244327c9bf7940ff8fa507e6 (diff)
Fixes alignment when in interactive mode and -f binary
-rw-r--r--src/common.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index ab71426..ccf3652 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -39,7 +39,8 @@ impl ByteFormat {
pub fn width(self) -> usize {
use ByteFormat::*;
match self {
- Metric | Binary => 10,
+ Metric => 10,
+ Binary => 11,
Bytes => 12,
MiB | MB => 12,
_ => 10,