Skip to content

Commit

Permalink
Merge pull request #128 from ontsysmattholcomb/use-env-proto-counters
Browse files Browse the repository at this point in the history
using HostProc for protocounters in linux
  • Loading branch information
shirou committed Dec 14, 2015
2 parents 76c6e2c + 21ccfe6 commit dc45220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc45220

Please sign in to comment.