Change to time.Seconds

pull/725/head
Pablo Garcia 4 weeks ago
parent 85d98316f3
commit 9ad96e6d37
No known key found for this signature in database
GPG Key ID: 13C15C3A8E6AB87D

@ -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)
}
}

Loading…
Cancel
Save