1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

enable Process.NumFds() for linux

This commit is contained in:
Nikolay Sivko 2015-02-07 16:12:14 +03:00
parent 4f6e4f73f3
commit 889c8c0bd5

View File

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