removing mem.{buffer,cached} fields.

replace with actual_{free,used} fields so we can portably adjust
-/+ buffers/cache on linux and perhaps on other platforms w/ different
semantics.
This commit is contained in:
Doug MacEachern committed 2004-11-20 02:08:16 +00:00
1 parent 41c0ee4f7c
commit fee5b18641
11 files changed
+34 -24

No files matched your search

+4 -3
View File
@@ -180,11 +180,12 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
mem->shared = KPAGE_SHIFT(kMEMPAGES(KSTAT_MEMPAGES_EXEC));
mem->buffer = KPAGE_SHIFT(kMEMPAGES(KSTAT_MEMPAGES_VNODE));
mem->cached = -1; /*XXX*/
/*mem->buffer = KPAGE_SHIFT(kMEMPAGES(KSTAT_MEMPAGES_VNODE));*/
}
mem->actual_free = mem->free;
mem->actual_used = mem->used;
return SIGAR_OK;
}