Skip to content

Commit 9ad96e6

Browse files
committed
Change to time.Seconds
1 parent 85d9831 commit 9ad96e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pkg/collector/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (mc *MetricsCollector) Run() error {
9393
mc.Collect(device.WWN, device.DeviceName, device.DeviceType)
9494

9595
if mc.config.GetInt("commands.metrics_smartctl_wait") > 0 {
96-
time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * 1000 * time.Millisecond)
96+
time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * time.Second)
9797
}
9898
}
9999

0 commit comments

Comments
 (0)