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), " ") 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,