Skip to content

Commit

Permalink
Change to time.Seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
pabsi committed Nov 26, 2024
1 parent 85d9831 commit 9ad96e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/pkg/collector/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 9ad96e6

Please sign in to comment.