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)]
|
netDev[dev]["transmit_"+v] = parts[i+1+len(header)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return netDev, nil
|
return netDev, scanner.Err()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue