fix meminfo output on consecutive calls

pull/151/head
Ben Aldrich 9 years ago
parent e77438504d
commit faeb99d327

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

Loading…
Cancel
Save