mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-11-09 23:24:09 -08:00
Merge pull request #398 from prometheus/fish-netdev-check-scan-errror
Check for errors in netdev scanner
This commit is contained in:
commit
d17b1b44a6
|
@ -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…
Reference in a new issue