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:
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…
x
Reference in New Issue
Block a user