diff options
Diffstat (limited to 'procps/nmeter.c')
-rw-r--r-- | procps/nmeter.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/procps/nmeter.c b/procps/nmeter.c index b846ee5b6..b8ba3facb 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -257,7 +257,10 @@ static int rdval_diskstats(const char* p, ullong *vec) | |||
257 | static void scale(ullong ul) | 257 | static void scale(ullong ul) |
258 | { | 258 | { |
259 | char buf[5]; | 259 | char buf[5]; |
260 | smart_ulltoa5(ul, buf); | 260 | |
261 | /* see http://en.wikipedia.org/wiki/Tera */ | ||
262 | smart_ulltoa4(ul, buf, " kmgtpezy"); | ||
263 | buf[4] = '\0'; | ||
261 | put(buf); | 264 | put(buf); |
262 | } | 265 | } |
263 | 266 | ||