Ensure that process.MemoryInfo returns a up-to-date value.
This commit is contained in:
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…
Reference in New Issue