libmemstat: Catch up with r357776.

Reported by:	O. Hartmann <ohartmann@walstatt.org>
This commit is contained in:
Mark Johnston 2020-02-11 20:15:49 +00:00
parent 4ab3aee8fb
commit 25aa4a3c07

View File

@ -476,7 +476,7 @@ memstat_kvm_uma(struct memory_type_list *list, void *kvm_handle)
ret = kread(kvm, &kzp->uk_domain[i],
&ukd, sizeof(ukd), 0);
if (ret != 0)
kegfree += ukd.ud_free;
kegfree += ukd.ud_free_items;
}
mtp->mt_kegfree = kegfree;
mtp->mt_free += mtp->mt_kegfree;