diff options
Diffstat (limited to 'collector/ntp.go')
-rw-r--r-- | collector/ntp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collector/ntp.go b/collector/ntp.go index 411ba25..c7d55c9 100644 --- a/collector/ntp.go +++ b/collector/ntp.go | |||
@@ -125,7 +125,7 @@ func (c *ntpCollector) Update(ch chan<- prometheus.Metric) error { | |||
125 | Timeout: time.Second, // default `ntpdate` timeout | 125 | Timeout: time.Second, // default `ntpdate` timeout |
126 | }) | 126 | }) |
127 | if err != nil { | 127 | if err != nil { |
128 | return fmt.Errorf("couldn't get SNTP reply: %s", err) | 128 | return fmt.Errorf("couldn't get SNTP reply: %w", err) |
129 | } | 129 | } |
130 | 130 | ||
131 | ch <- c.stratum.mustNewConstMetric(float64(resp.Stratum)) | 131 | ch <- c.stratum.mustNewConstMetric(float64(resp.Stratum)) |