Merge pull request #151 from vrecan/mem_info

fix meminfo output on consecutive calls
pull/152/head
shirou 9 years ago
commit b7e206ba77

@ -188,11 +188,11 @@ func (p *Process) CPUAffinity() ([]int32, error) {
return nil, common.NotImplementedError
}
func (p *Process) MemoryInfo() (*MemoryInfoStat, error) {
_, _, err := p.fillFromStatm()
meminfo, _, err := p.fillFromStatm()
if err != nil {
return nil, err
}
return p.memInfo, nil
return meminfo, nil
}
func (p *Process) MemoryInfoEx() (*MemoryInfoExStat, error) {
_, memInfoEx, err := p.fillFromStatm()

Loading…
Cancel
Save