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>
This commit is contained in:
Jens Schweikhardt 2001-06-13 18:43:28 +00:00
parent e22115bbf1
commit 67d9fd5ac4
1 changed files with 1 additions and 1 deletions

View File

@ -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));