ing
This commit is contained in:
parent
3ef6659f46
commit
2e31ae10eb
|
@ -32,12 +32,10 @@ func (ps *ProcessStat) Parse(r io.Reader) (*[]ProcessStat, error) {
|
||||||
user: parts[0],
|
user: parts[0],
|
||||||
pid: parts[1],
|
pid: parts[1],
|
||||||
size: parts[2],
|
size: parts[2],
|
||||||
pcpu: parts[3],
|
pcpu: parts[3],
|
||||||
pmem: parts[4],
|
pmem: parts[4],
|
||||||
cmd: parts[5],
|
cmd: parts[5],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return &psStats, scanner.Err()
|
return &psStats, scanner.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user