mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
Merge branch 'patch-1' of https://github.com/ginggs/htop-1 into ginggs-patch-1
This commit is contained in:
commit
45062b26d6
@ -325,17 +325,6 @@ static inline void FreeBSDProcessList_scanMemoryInfo(ProcessList* pl) {
|
||||
cachedMem *= pageSizeKb;
|
||||
pl->cachedMem = cachedMem;
|
||||
|
||||
if (fpl->zfsArcEnabled) {
|
||||
len = sizeof(memZfsArc);
|
||||
sysctl(MIB_kstat_zfs_misc_arcstats_size, 5, &(memZfsArc), &len , NULL, 0);
|
||||
memZfsArc /= 1024;
|
||||
fpl->memZfsArc = memZfsArc;
|
||||
fpl->memWire -= fpl->memZfsArc;
|
||||
pl->cachedMem += fpl->memZfsArc;
|
||||
// maybe when we learn how to make custom memory meter
|
||||
// we could do custom arc breakdown?
|
||||
}
|
||||
|
||||
if (fpl->zfs.enabled) {
|
||||
fpl->memWire -= fpl->zfs.size;
|
||||
pl->cachedMem += fpl->zfs.size;
|
||||
|
Loading…
Reference in New Issue
Block a user