fix mem.free
This commit is contained in:
parent
f3e6cefc4d
commit
1962f0fe68
|
@ -32,7 +32,7 @@ int sigar_mem_get(sigar_t *sigar, sigar_mem_t *mem)
|
|||
}
|
||||
mem->total = info.TotalKnownSystemMemoryUnder4Gb;
|
||||
mem->used = info.TotalWorkMemory;
|
||||
mem->free = mem->total - mem->free;
|
||||
mem->free = mem->total - mem->used;
|
||||
mem->shared = -1;
|
||||
mem->actual_free = mem->free;
|
||||
mem->actual_used = mem->used;
|
||||
|
|
Loading…
Reference in New Issue