UPAGES as a constant is gone in KSE. We are going to have to trust

and/or fix ki_rssize.
This commit is contained in:
peter 2001-09-10 07:19:26 +00:00
parent e5916b844f
commit 6f3b147d9a

View File

@ -557,7 +557,6 @@ getpmem(k)
{
static int failure;
double fracmem;
int szptudot;
if (!nlistread)
failure = donlist();
@ -567,9 +566,8 @@ getpmem(k)
if ((k->ki_p->ki_sflag & PS_INMEM) == 0)
return (0.0);
/* XXX want pmap ptpages, segtab, etc. (per architecture) */
szptudot = UPAGES;
/* XXX don't have info about shared */
fracmem = ((float)k->ki_p->ki_rssize + szptudot)/mempages;
fracmem = ((float)k->ki_p->ki_rssize)/mempages;
return (100.0 * fracmem);
}