Ensure that process.MemoryInfo returns a up-to-date value.

pull/74/head
choplin 10 years ago
parent 6bb6762470
commit cc3a104593

@ -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