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), " ")
|
fields := strings.Split(string(contents), " ")
|
||||||
|
|
||||||
rss := mustParseUint64(fields[0]) * PageSize
|
vms := mustParseUint64(fields[0]) * PageSize
|
||||||
vms := mustParseUint64(fields[1]) * PageSize
|
rss := mustParseUint64(fields[1]) * PageSize
|
||||||
memInfo := &MemoryInfoStat{
|
memInfo := &MemoryInfoStat{
|
||||||
RSS: rss,
|
RSS: rss,
|
||||||
VMS: vms,
|
VMS: vms,
|
||||||
|
|
Loading…
Reference in New Issue