We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56a9454 commit c168e1eCopy full SHA for c168e1e
collector/pkg/collector/metrics.go
@@ -91,7 +91,9 @@ func (mc *MetricsCollector) Run() error {
91
//go mc.Collect(&wg, device.WWN, device.DeviceName, device.DeviceType)
92
mc.Collect(device.WWN, device.DeviceName, device.DeviceType)
93
94
- time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * time.Millisecond)
+ if mc.config.GetInt("commands.metrics_smartctl_wait") > 0 {
95
+ time.Sleep(time.Duration(mc.config.GetInt("commands.metrics_smartctl_wait")) * time.Millisecond)
96
+ }
97
}
98
99
//mc.logger.Infoln("Main: Waiting for workers to finish")
0 commit comments