diff options
author | Olaf Buddenhagen <antrik@users.sourceforge.net> | 2011-08-22 01:24:43 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-22 01:24:43 +0200 |
commit | f42555fed3a4151cb319a3fb079ae87f6d9c9aa5 (patch) | |
tree | 54f972d8d4f34a53659fcc38172de88d0e647729 | |
parent | c0eaf0fad88f15c843098a43ca2cadbf009ce094 (diff) |
Be less aggressive about switching to bigger units
* utils/vmstat.c (print_val): Switch size unit at 10000 instead of 1024.
-rw-r--r-- | utils/vmstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/vmstat.c b/utils/vmstat.c index bc3f2d45..7d852992 100644 --- a/utils/vmstat.c +++ b/utils/vmstat.c @@ -111,7 +111,7 @@ print_val (val_t val, enum val_type type, float fval = val; char *units = " KMGT", *u = units; - while (fval > 1024) + while (fval >= 10000) { fval /= 1024; u++; |