mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
smart_ulltoa5: emit small letters k,m,g... - makes top
more readable
This commit is contained in:
parent
b308d81e92
commit
76c476f817
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user