Merge pull request #127 from DataDog/fix-process-mem-unit-osx

process[darwin] Fix unit of RSS and VMS
This commit is contained in:
shirou 2015-12-15 00:09:31 +09:00
commit de9cd47bb0
1 changed files with 2 additions and 2 deletions

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