process[darwin] Fix unit of RSS and VMS

Should be bytes, `ps` returns Kbytes.
pull/127/head
Olivier Vielpeau 10 years ago
parent 76c6e2ccc8
commit ec627e67ac

@ -263,8 +263,8 @@ func (p *Process) MemoryInfo() (*MemoryInfoStat, error) {
} }
ret := &MemoryInfoStat{ ret := &MemoryInfoStat{
RSS: uint64(rss), RSS: uint64(rss) * 1024,
VMS: uint64(vms), VMS: uint64(vms) * 1024,
Swap: uint64(pagein), Swap: uint64(pagein),
} }

Loading…
Cancel
Save