This commit is contained in:
Doug MacEachern 2009-06-01 13:06:41 -07:00
parent 91ba1a2c3d
commit bace63f710
1 changed files with 2 additions and 2 deletions

View File

@ -460,8 +460,8 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
return status;
}
mem->free = vmstat.free_count;
mem->free *= sigar->pagesize;
mem->free = vmstat.free_count;
mem->free *= sigar->pagesize;
#elif defined(__FreeBSD__)
if ((status = sigar_vmstat(sigar, &vmstat)) == SIGAR_OK) {
mem->free = vmstat.v_free_count;