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:
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…
x
Reference in New Issue
Block a user