Merge branch 'sigar-1.6'

This commit is contained in:
Doug MacEachern 2009-11-03 14:19:28 -08:00
commit 7aa28d0ddc
1 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,8 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
mem->free = vmstat.free_count; mem->free = vmstat.free_count;
mem->free *= sigar->pagesize; mem->free *= sigar->pagesize;
kern = vmstat.inactive_count;
kern *= sigar->pagesize;
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) { if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) {
kern = vmstat.v_cache_count + vmstat.v_inactive_count; kern = vmstat.v_cache_count + vmstat.v_inactive_count;