fix mem.free

This commit is contained in:
Doug MacEachern 2005-09-01 22:42:37 +00:00
parent f3e6cefc4d
commit 1962f0fe68
1 changed files with 1 additions and 1 deletions

View File

@ -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;