A set of fixes to fix the tests

This commit is contained in:
Evan Phoenix
2015-05-26 22:14:55 -07:00
parent 2667183bfb
commit 2bd58ee4df
4 changed files with 97 additions and 98 deletions

View File

@@ -10,6 +10,7 @@ import (
type NetIOStats struct {
ps PS
skipChecks bool
Interfaces []string
}
@@ -49,7 +50,7 @@ func (s *NetIOStats) Gather(acc plugins.Accumulator) error {
if !found {
continue
}
} else {
} else if !s.skipChecks {
iface, err := net.InterfaceByName(io.Name)
if err != nil {
continue