From a4915e8ed66dbe84973f9e22ed6a458600896304 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 3 Nov 2009 14:18:54 -0800 Subject: [PATCH] (SIGAR-188) implement mem actual free/used on MacOSX --- src/os/darwin/darwin_sigar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index e4b6ceee..ee919bfd 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -468,6 +468,8 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem) mem->free = vmstat.free_count; mem->free *= sigar->pagesize; + kern = vmstat.inactive_count; + kern *= sigar->pagesize; #elif defined(__FreeBSD__) if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) { kern = vmstat.v_cache_count + vmstat.v_inactive_count;