Merge pull request #74 from choplin/patch-2

Ensure that process.MemoryInfo returns a up-to-date value.
pull/75/head
shirou 10 years ago
commit e10ccf9971

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

Loading…
Cancel
Save