Don't ignore context for io counters

pull/876/head
gtosh4 5 years ago committed by GitHub
parent 987c949880
commit 936d3b27f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,7 +50,7 @@ func IOCounters(pernic bool) ([]IOCountersStat, error) {
func IOCountersWithContext(ctx context.Context, pernic bool) ([]IOCountersStat, error) {
filename := common.HostProc("net/dev")
return IOCountersByFile(pernic, filename)
return IOCountersByFileWithContext(ctx, pernic, filename)
}
func IOCountersByFile(pernic bool, filename string) ([]IOCountersStat, error) {

Loading…
Cancel
Save