diff --git a/net/net_freebsd.go b/net/net_freebsd.go index 6dc7a23..d6882f1 100644 --- a/net/net_freebsd.go +++ b/net/net_freebsd.go @@ -32,6 +32,9 @@ func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) { } exists = append(exists, values[0]) + if len(values) < 12 { + continue + } base := 1 // sometimes Address is ommitted if len(values) < 13 {