1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

process[darwin] Fix unit of RSS and VMS

Should be bytes, `ps` returns Kbytes.
This commit is contained in:
Olivier Vielpeau 2015-12-14 12:13:27 +01:00
parent 76c6e2ccc8
commit ec627e67ac

View File

@ -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),
}