Skip to content

Commit

Permalink
Merge pull request #127 from DataDog/fix-process-mem-unit-osx
Browse files Browse the repository at this point in the history
process[darwin] Fix unit of RSS and VMS
  • Loading branch information
shirou committed Dec 14, 2015
2 parents dc45220 + ec627e6 commit de9cd47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process/process_darwin.go
Expand Up @@ -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),
}

Expand Down

0 comments on commit de9cd47

Please sign in to comment.