Merge memstat_uma.c:1.13 from HEAD to RELENG_6:

Correct a typo in the extraction of zone information from UMA using kmem:
  bytes = allocated - freed, not bytes = allocated = freed.

Approved by:	re (scottl)
This commit is contained in:
rwatson 2006-02-14 03:33:06 +00:00
parent ddcacb3189
commit 837a6e1c15

View File

@ -409,7 +409,7 @@ skip_percpu:
mtp->mt_size = kz.uk_size;
mtp->mt_memalloced = mtp->mt_numallocs * mtp->mt_size;
mtp->mt_memfreed = mtp->mt_numfrees * mtp->mt_size;
mtp->mt_bytes = mtp->mt_memalloced = mtp->mt_memfreed;
mtp->mt_bytes = mtp->mt_memalloced - mtp->mt_memfreed;
if (kz.uk_ppera > 1)
mtp->mt_countlimit = kz.uk_maxpages /
kz.uk_ipers;