summaryrefslogtreecommitdiff
path: root/utils/vmstat.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-07-01 02:12:43 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-07-01 02:12:43 +0000
commit13ea39a34766fcbecd96ab94bcdf798b08e9bb60 (patch)
tree1e1463b03838a6f36868a4dafc7e652358a51857 /utils/vmstat.c
parent1f8d504f631531c199d7c6154a0dc442d80ea4a7 (diff)
parent7e15f3d69a83a34ac62cbbee944a0bfbfa92724e (diff)
Merge branch 'master' into xkb
Conflicts: config.make.in configure.in
Diffstat (limited to 'utils/vmstat.c')
-rw-r--r--utils/vmstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/vmstat.c b/utils/vmstat.c
index 86494dce..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++;
@@ -456,7 +456,7 @@ main (int argc, char **argv)
if (field->standard)
output_fields |= (1 << (field - fields));
- /* Returns an appropiate SIZE_UNITS for printing FIELD. */
+ /* Returns an appropriate SIZE_UNITS for printing FIELD. */
#define SIZE_UNITS(field) \
(size_units >= 0 \
? size_units \