Merge branch 'sigar-1.6'
This commit is contained in:
commit
f14fc92e81
|
@ -490,6 +490,13 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
mem->free = vmstat.free;
|
mem->free = vmstat.free;
|
||||||
|
kern = vmstat.inactive;
|
||||||
|
# if defined(__OpenBSD__)
|
||||||
|
kern += vmstat.vnodepages + vmstat.vtextpages;
|
||||||
|
# elif defined(__NetBSD__)
|
||||||
|
kern += vmstat.filepages + vmstat.execpages;
|
||||||
|
# endif
|
||||||
|
kern *= sigar->pagesize;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mem->used = mem->total - mem->free;
|
mem->used = mem->total - mem->free;
|
||||||
|
|
Loading…
Reference in New Issue