mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Make the %zfod display make more sense by comparing zfod versus the total
zfod + nzfod, rather than zfod / nzfod, which doesn't make a whole lot of sense.
This commit is contained in:
parent
cf1344f6fc
commit
104a05478d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1893
1 changed files with 5 additions and 2 deletions
|
@ -454,8 +454,11 @@ showkre()
|
|||
PUTRATE(Cnt.v_hits, VMSTATROW + 2, VMSTATCOL + 3, 6);
|
||||
PUTRATE(Cnt.v_zfod, VMSTATROW + 3, VMSTATCOL + 4, 5);
|
||||
PUTRATE(Cnt.v_nzfod, VMSTATROW + 4, VMSTATCOL + 3, 6);
|
||||
putfloat(cnt.v_nzfod == 0 ? 0.0 : (100.0 * cnt.v_zfod / cnt.v_nzfod),
|
||||
VMSTATROW + 5, VMSTATCOL + 2, 7, 2, 1);
|
||||
{
|
||||
unsigned long tot = cnt.v_zfod + cnt.v_nzfod;
|
||||
putfloat(tot == 0 ? 0.0 : (100.0 * cnt.v_zfod / tot),
|
||||
VMSTATROW + 5, VMSTATCOL + 2, 7, 2, 1);
|
||||
}
|
||||
putint(pgtokb(cnt.v_kernel_pages), VMSTATROW + 6, VMSTATCOL, 9);
|
||||
putint(pgtokb(cnt.v_wire_count), VMSTATROW + 7, VMSTATCOL, 9);
|
||||
putint(pgtokb(cnt.v_active_count), VMSTATROW + 8, VMSTATCOL, 9);
|
||||
|
|
Loading…
Reference in a new issue