summaryrefslogtreecommitdiffstats
path: root/lib/libmemstat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-02-11 16:54:00 +0000
committerrwatson <rwatson@FreeBSD.org>2006-02-11 16:54:00 +0000
commit244cb93d720641ee7ab0d3a5168125408d92fd03 (patch)
tree498c52866156046a21eae235e9abedc7af48434b /lib/libmemstat
parenta273d7838c7401335e9576adc953ba86b55c0078 (diff)
downloadFreeBSD-src-244cb93d720641ee7ab0d3a5168125408d92fd03.zip
FreeBSD-src-244cb93d720641ee7ab0d3a5168125408d92fd03.tar.gz
Correct a typo in the extraction of zone information from UMA using kmem:
bytes = allocated - freed, not bytes = allocated = freed. MFC after: 3 days
Diffstat (limited to 'lib/libmemstat')
-rw-r--r--lib/libmemstat/memstat_uma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c
index ce47c34..911c099 100644
--- a/lib/libmemstat/memstat_uma.c
+++ b/lib/libmemstat/memstat_uma.c
@@ -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;
OpenPOWER on IntegriCloud