mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
using HostProc for protocounters in linux
This commit is contained in:
parent
fc932d9090
commit
21ccfe6b60
@ -116,7 +116,7 @@ func NetProtoCounters(protocols []string) ([]NetProtoCountersStat, error) {
|
||||
protos[p] = true
|
||||
}
|
||||
|
||||
filename := "/proc/net/snmp"
|
||||
filename := common.HostProc("net/snmp")
|
||||
lines, err := common.ReadLines(filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user