Merge branch 'sigar-1.6'
This commit is contained in:
commit
715b32f1a6
|
@ -460,7 +460,8 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
mem->free = vmstat.free_count * sigar->pagesize;
|
mem->free = vmstat.free_count;
|
||||||
|
mem->free *= sigar->pagesize;
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) {
|
if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) {
|
||||||
mem->free = vmstat.v_free_count;
|
mem->free = vmstat.v_free_count;
|
||||||
|
|
Loading…
Reference in New Issue