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{
RSS: uint64(rss),
VMS: uint64(vms),
RSS: uint64(rss) * 1024,
VMS: uint64(vms) * 1024,
Swap: uint64(pagein),
}

Loading…
Cancel
Save