From 2177270d80d3786fe99a941b830c56db098ef4d6 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 13 Apr 2017 18:56:04 -0700 Subject: [PATCH] Use variadic disk.IOCounters() function --- Godeps | 2 +- plugins/inputs/system/ps.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Godeps b/Godeps index 0a7cc30a5..510f5b1ed 100644 --- a/Godeps +++ b/Godeps @@ -45,7 +45,7 @@ github.com/prometheus/common dd2f054febf4a6c00f2343686efb775948a8bff4 github.com/prometheus/procfs 1878d9fbb537119d24b21ca07effd591627cd160 github.com/rcrowley/go-metrics 1f30fe9094a513ce4c700b9a54458bbb0c96996c github.com/samuel/go-zookeeper 1d7be4effb13d2d908342d349d71a284a7542693 -github.com/shirou/gopsutil dfbb3e40da8d6fcd1aa0d87003e965fe0ca745ea +github.com/shirou/gopsutil 70693b6a3da51a8a686d31f1b346077bbc066062 github.com/soniah/gosnmp 5ad50dc75ab389f8a1c9f8a67d3a1cd85f67ed15 github.com/streadway/amqp 63795daa9a446c920826655f26ba31c81c860fd6 github.com/stretchr/testify 4d4bfba8f1d1027c4fdbe371823030df51419987 diff --git a/plugins/inputs/system/ps.go b/plugins/inputs/system/ps.go index d25327812..20e01742a 100644 --- a/plugins/inputs/system/ps.go +++ b/plugins/inputs/system/ps.go @@ -121,7 +121,7 @@ func (s *systemPS) NetConnections() ([]net.ConnectionStat, error) { } func (s *systemPS) DiskIO(names []string) (map[string]disk.IOCountersStat, error) { - m, err := disk.IOCountersForNames(names) + m, err := disk.IOCounters(names...) if err == internal.NotImplementedError { return nil, nil }