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

+2 -2
View File
@@ -33,8 +33,8 @@ int main(int argc, char *argv[]){
meminfo.buffer / 1024,
meminfo.cached / 1024);
fprintf(stdout, "-/+ buffers/cache: %10ld %10d\n",
(meminfo.used - meminfo.buffer - meminfo.cached) / 1024,
(meminfo.free + meminfo.buffer + meminfo.cached) / 1024);
meminfo.actual_used / 1024,
meminfo.actual_free / 1024);
fprintf(stdout, "Swap: %10ld %10ld %10ld\n",
swapinfo.total / 1024,
swapinfo.used / 1024,