summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorOlaf Buddenhagen <antrik@users.sourceforge.net>2011-08-22 01:24:43 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-08-22 01:24:43 +0200
commitf42555fed3a4151cb319a3fb079ae87f6d9c9aa5 (patch)
tree54f972d8d4f34a53659fcc38172de88d0e647729 /utils
parentc0eaf0fad88f15c843098a43ca2cadbf009ce094 (diff)
Be less aggressive about switching to bigger units
* utils/vmstat.c (print_val): Switch size unit at 10000 instead of 1024.
Diffstat (limited to 'utils')
-rw-r--r--utils/vmstat.c2
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++;