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:
parent
e22115bbf1
commit
67d9fd5ac4
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user