提交 ec627e67 编写于 作者: O Olivier Vielpeau

process[darwin] Fix unit of RSS and VMS

Should be bytes, `ps` returns Kbytes.
上级 76c6e2cc
......@@ -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),
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册