Merge branch 'sigar-1.6'
This commit is contained in:
commit
7aa28d0ddc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue