Change to time.Seconds

This commit is contained in:
Pablo Garcia
2024-11-26 15:13:44 +01:00
parent 85d98316f3
commit 9ad96e6d37
+1 -1
View File
@@ -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)
}
}