fix /proc/pid/statm parsing

This commit is contained in:
Nikolay Sivko 2014-08-31 12:50:53 +04:00
parent 7dc4b97c4f
commit 14a4d64f47
1 changed files with 2 additions and 2 deletions

View File

@ -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,