Merge pull request #127 from DataDog/fix-process-mem-unit-osx
process[darwin] Fix unit of RSS and VMS
This commit is contained in:
commit
de9cd47bb0
|
@ -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…
Reference in New Issue