From 1962f0fe685a9b22fd1978db8baeb33a0935520d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 1 Sep 2005 22:42:37 +0000 Subject: [PATCH] fix mem.free --- src/os/netware/netware_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/netware/netware_sigar.c b/src/os/netware/netware_sigar.c index 53c1b3bc..4423eca7 100644 --- a/src/os/netware/netware_sigar.c +++ b/src/os/netware/netware_sigar.c @@ -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;