summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2001-06-13 18:43:28 +0000
committerschweikh <schweikh@FreeBSD.org>2001-06-13 18:43:28 +0000
commitec5e03bd09a6ee17cb2d59646090e588babdd83f (patch)
tree000c323943997cf27be467182787c801dbc4d7a8 /usr.bin/vmstat
parentd8e4d500e0cf14d3f8cf890c9a8e5d3e020fd9a8 (diff)
downloadFreeBSD-src-ec5e03bd09a6ee17cb2d59646090e588babdd83f.zip
FreeBSD-src-ec5e03bd09a6ee17cb2d59646090e588babdd83f.tar.gz
Avoid the avm field joining the w field when avm is > 9.999.999 pages
which is slightly less than 4GB. To use a quote from someone who shall remain nameless "No one will ever need more than 4 GB" :-) But FreeBSD is prepared if we one day will. Requested by: Eugene Aleynikov <eugenea@infospace.com>
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 5181e04..d7cd526 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -481,7 +481,7 @@ dovmstat(interval, reps)
total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);
#define vmstat_pgtok(a) ((a) * sum.v_page_size >> 10)
#define rate(x) (((x) + halfuptime) / uptime) /* round */
- (void)printf("%8ld %6ld ",
+ (void)printf(" %7ld %6ld ",
(long)vmstat_pgtok(total.t_avm), (long)vmstat_pgtok(total.t_free));
(void)printf("%4lu ",
(u_long)rate(sum.v_vm_faults - osum.v_vm_faults));
OpenPOWER on IntegriCloud