aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Lawrence <scott+git@ineffectivetheory.com>2024-11-28 11:57:12 -0700
committerScott Lawrence <scott+git@ineffectivetheory.com>2024-11-28 11:57:12 -0700
commitde30d14e0cc11fd4785f58ae642e4581991b9a76 (patch)
tree3a33ba7828011e59f2e18f4a6904ce2e2515ace2
parent391862c82d331ee25a8e520d7c4ef0fe370b3819 (diff)
downloadvaranus-main.tar.gz
varanus-main.tar.bz2
varanus-main.zip
Adding more sizesHEADmain
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 11662e7..95c6c0e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -285,7 +285,7 @@ impl Drop for Listener {
fn human(k: u64) -> String {
let mut x: f64 = k as f64;
let mut i = 0;
- let cs = ["", "K", "M", "G", "T", "P"];
+ let cs = ["", "K", "M", "G", "T", "P", "E", "Z", "Y"];
while x >= 1000. && i < cs.len()-1 {
x /= 1000.;
i += 1;