From: Denis Vlasenko Date: Tue, 28 Aug 2007 20:04:15 +0000 (-0000) Subject: smart_ulltoa5: emit small letters k,m,g... - makes top X-Git-Tag: 1_8_0~222 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76c476f817864ce27c1c241528a9d005246bdaae;p=oweals%2Fbusybox.git smart_ulltoa5: emit small letters k,m,g... - makes top more readable --- 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]) } 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'; }