[net] fix panic on freebsd (netstat error with exit code 0)

pull/125/head
Nikolay Sivko 9 years ago
parent fc932d9090
commit 906df3ed85

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

Loading…
Cancel
Save