Merge pull request #20 from elementai/proc-smaps-skip-vmflags

skip VmFlags field when reading /proc/<pid>/smaps
pull/23/head
shirou 11 years ago
commit 4338d0b15b

@ -200,6 +200,9 @@ func (p *Process) MemoryMaps(grouped bool) (*[]MemoryMapsStat, error) {
m.Path = first_line[len(first_line)-1]
for _, line := range block {
if strings.Contains(line, "VmFlags") {
continue
}
field := strings.Split(line, ":")
if len(field) < 2 {
continue

Loading…
Cancel
Save