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:
Garrett Wollman 1994-08-07 00:16:29 +00:00
parent cf1344f6fc
commit 104a05478d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1893

View file

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