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 -1
View File
@@ -55,7 +55,10 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
mem->used = mem->total - mem->free;
/*XXX*/
mem->shared = mem->buffer = mem->cached = 0;
mem->shared = 0;
mem->actual_free = mem->free;
mem->actual_used = mem->used;
return SIGAR_OK;
}