From ca1d2c7000b526a1ec4cd850e0c382cbf0cd1b0b Mon Sep 17 00:00:00 2001 From: subhachandrachandra Date: Fri, 21 Aug 2015 15:15:19 -0700 Subject: [PATCH] Fixed total memory reporting for Darwin systems. hw.memsize is reported as bytes instead of pages. --- plugins/system/ps/mem/mem_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/system/ps/mem/mem_darwin.go b/plugins/system/ps/mem/mem_darwin.go index 5d2ff7e3e..43da44d1d 100644 --- a/plugins/system/ps/mem/mem_darwin.go +++ b/plugins/system/ps/mem/mem_darwin.go @@ -53,7 +53,7 @@ func VirtualMemory() (*VirtualMemoryStat, error) { } ret := &VirtualMemoryStat{ - Total: parsed[0] * p, + Total: parsed[0], Free: parsed[1] * p, }