diff options
author | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 14:31:35 -0400 |
---|---|---|
committer | Tobias Schmidt <tobidt@gmail.com> | 2017-02-28 16:04:25 -0400 |
commit | 084e585c2af0a886dad527dc67184a4e6bc10747 (patch) | |
tree | ec077bdc4fab95402861732a8e500d67b71fddfc /collector/vmstat_linux.go | |
parent | d1dfda86eef11b2b04afa5ca80910224cad721c8 (diff) | |
download | prometheus_node_collector-084e585c2af0a886dad527dc67184a4e6bc10747.tar.bz2 prometheus_node_collector-084e585c2af0a886dad527dc67184a4e6bc10747.tar.xz prometheus_node_collector-084e585c2af0a886dad527dc67184a4e6bc10747.zip |
Fix scanner usage without error handling
Diffstat (limited to 'collector/vmstat_linux.go')
-rw-r--r-- | collector/vmstat_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/vmstat_linux.go b/collector/vmstat_linux.go index beb41e7..3f68c14 100644 --- a/collector/vmstat_linux.go +++ b/collector/vmstat_linux.go | |||
@@ -64,5 +64,5 @@ func (c *vmStatCollector) Update(ch chan<- prometheus.Metric) (err error) { | |||
64 | value, | 64 | value, |
65 | ) | 65 | ) |
66 | } | 66 | } |
67 | return err | 67 | return scanner.Err() |
68 | } | 68 | } |