Merge pull request #128 from ontsysmattholcomb/use-env-proto-counters

using HostProc for protocounters in linux
This commit is contained in:
shirou 2015-12-14 21:44:25 +09:00
commit dc452207f2
1 changed files with 1 additions and 1 deletions

View File

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