mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
cda869c9db
commit
ee4be9485c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155542
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue