From 83cecfa69678e8c276ac1641db2e89050dd4e0da Mon Sep 17 00:00:00 2001 From: Derek Marcotte <554b8425@razorfever.net> Date: Mon, 17 Apr 2017 10:50:49 -0400 Subject: [PATCH] Fixes broken build on Dragonfly. Undefined err: https://github.com/prometheus/node_exporter/blob/84eaa8fecd511b5aacb9de5440fdec9c713761bd/collector/devstat_dragonfly.go#L145 --- collector/devstat_dragonfly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/devstat_dragonfly.go b/collector/devstat_dragonfly.go index 95639917..af1e0ee4 100644 --- a/collector/devstat_dragonfly.go +++ b/collector/devstat_dragonfly.go @@ -142,5 +142,5 @@ func (c *devstatCollector) Update(ch chan<- prometheus.Metric) error { ch <- prometheus.MustNewConstMetric(c.blocksDesc, prometheus.CounterValue, float64(stats.blocks), device) } - return err + return nil }