From 9ad96e6d37a89d69a6e4802ab0d12fbde981aa3f Mon Sep 17 00:00:00 2001 From: Pablo Garcia Date: Tue, 26 Nov 2024 15:13:44 +0100 Subject: [PATCH] Change to time.Seconds --- collector/pkg/collector/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/pkg/collector/metrics.go b/collector/pkg/collector/metrics.go index 3f2088a..10bb98d 100644 --- a/collector/pkg/collector/metrics.go +++ b/collector/pkg/collector/metrics.go @@ -93,7 +93,7 @@ func (mc *MetricsCollector) Run() error { mc.Collect(device.WWN, device.DeviceName, device.DeviceType) if mc.config.GetInt("commands.metrics_smartctl_wait") > 0 { - time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * 1000 * time.Millisecond) + time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * time.Second) } }