projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b308d81
)
smart_ulltoa5: emit small letters k,m,g... - makes top
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 28 Aug 2007 20:04:15 +0000
(20:04 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 28 Aug 2007 20:04:15 +0000
(20:04 -0000)
more readable
libbb/xfuncs.c
patch
|
blob
|
history
diff --git
a/libbb/xfuncs.c
b/libbb/xfuncs.c
index
140c7bb
..
2215bb8
100644
(file)
--- a/
libbb/xfuncs.c
+++ b/
libbb/xfuncs.c
@@
-323,7
+323,8
@@
void smart_ulltoa5(unsigned long long ul, char buf[5])
}
buf[2] = "0123456789"[v];
// see http://en.wikipedia.org/wiki/Tera
- buf[3] = " kMGTPEZY"[idx];
+ // (small letters stand out better versus numbers)
+ buf[3] = " kmgtpezy"[idx];
}
buf[4] = '\0';
}