Correct a typo in the extraction of zone information from UMA using kmem:

bytes = allocated - freed, not bytes = allocated = freed.

MFC after:	3 days
This commit is contained in:
Robert Watson 2006-02-11 16:54:00 +00:00
parent cda869c9db
commit ee4be9485c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155542

View file

@ -409,7 +409,7 @@ memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle)
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;