enable Process.NumFds() for linux

pull/45/head
Nikolay Sivko 10 years ago
parent 4f6e4f73f3
commit 889c8c0bd5

@ -132,7 +132,8 @@ func (p *Process) NumCtxSwitches() (*NumCtxSwitchesStat, error) {
return p.numCtxSwitches, nil
}
func (p *Process) NumFDs() (int32, error) {
return 0, common.NotImplementedError
numFds, _, err := p.fillFromfd()
return numFds, err
}
func (p *Process) NumThreads() (int32, error) {
return p.numThreads, nil

Loading…
Cancel
Save