using HostProc for protocounters in linux

pull/128/head
Matt Holcomb 9 years ago
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…
Cancel
Save