fix /proc/pid/statm parsing
This commit is contained in:
parent
7dc4b97c4f
commit
14a4d64f47
|
@ -386,8 +386,8 @@ func (p *Process) fillFromStatm() (*MemoryInfoStat, *MemoryInfoExStat, error) {
|
|||
}
|
||||
fields := strings.Split(string(contents), " ")
|
||||
|
||||
rss := mustParseUint64(fields[0]) * PageSize
|
||||
vms := mustParseUint64(fields[1]) * PageSize
|
||||
vms := mustParseUint64(fields[0]) * PageSize
|
||||
rss := mustParseUint64(fields[1]) * PageSize
|
||||
memInfo := &MemoryInfoStat{
|
||||
RSS: rss,
|
||||
VMS: vms,
|
||||
|
|
Loading…
Reference in New Issue