From ec627e67acda82cf20508d6cdecae86876934d3a Mon Sep 17 00:00:00 2001 From: Olivier Vielpeau Date: Mon, 14 Dec 2015 12:13:27 +0100 Subject: [PATCH] process[darwin] Fix unit of RSS and VMS Should be bytes, `ps` returns Kbytes. --- process/process_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process/process_darwin.go b/process/process_darwin.go index a8fce7d..01cb66c 100644 --- a/process/process_darwin.go +++ b/process/process_darwin.go @@ -263,8 +263,8 @@ func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { } ret := &MemoryInfoStat{ - RSS: uint64(rss), - VMS: uint64(vms), + RSS: uint64(rss) * 1024, + VMS: uint64(vms) * 1024, Swap: uint64(pagein), }