Skip to content

Commit 330b137

Browse files
author
geno
committed
Reduce wasted space
1 parent 5181e3d commit 330b137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ fn disp_units(num: u64) -> String {
414414
}
415415

416416
let n = if count > 0 { 1 } else { 0 };
417-
format!("{:<5.*}{:>1}", n, value, unit[count])
417+
format!("{:.*}{:>1}", n, value, unit[count])
418418
}
419419

420420
fn format_msg(input: &mut String, actions: &mut Vec<String>) {

0 commit comments

Comments
 (0)