Browse Source

Merge pull request #398 from prometheus/fish-netdev-check-scan-errror

Check for errors in netdev scanner
pull/246/merge
Johannes 'fish' Ziemke 8 years ago committed by GitHub
parent
commit
d17b1b44a6
  1. 2
      collector/netdev_linux.go

2
collector/netdev_linux.go

@ -70,5 +70,5 @@ func parseNetDevStats(r io.Reader, ignore *regexp.Regexp) (map[string]map[string
netDev[dev]["transmit_"+v] = parts[i+1+len(header)]
}
}
return netDev, nil
return netDev, scanner.Err()
}

Loading…
Cancel
Save