diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-28 20:04:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-28 20:04:15 +0000 |
commit | 76c476f817864ce27c1c241528a9d005246bdaae (patch) | |
tree | db2010076e14986110c55f5e4fa88d729f604f53 /libbb | |
parent | b308d81e927d28cb0223378049defc133787727d (diff) | |
download | busybox-w32-76c476f817864ce27c1c241528a9d005246bdaae.tar.gz busybox-w32-76c476f817864ce27c1c241528a9d005246bdaae.tar.bz2 busybox-w32-76c476f817864ce27c1c241528a9d005246bdaae.zip |
smart_ulltoa5: emit small letters k,m,g... - makes top
more readable
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 140c7bb6f..2215bb8df 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -323,7 +323,8 @@ void smart_ulltoa5(unsigned long long ul, char buf[5]) | |||
323 | } | 323 | } |
324 | buf[2] = "0123456789"[v]; | 324 | buf[2] = "0123456789"[v]; |
325 | // see http://en.wikipedia.org/wiki/Tera | 325 | // see http://en.wikipedia.org/wiki/Tera |
326 | buf[3] = " kMGTPEZY"[idx]; | 326 | // (small letters stand out better versus numbers) |
327 | buf[3] = " kmgtpezy"[idx]; | ||
327 | } | 328 | } |
328 | buf[4] = '\0'; | 329 | buf[4] = '\0'; |
329 | } | 330 | } |