Merge branch 'develop' of github.com:ClusterCockpit/cc-metric-collector into develop

This commit is contained in:
Thomas Roehl 2022-01-25 16:41:54 +01:00
commit 8f9bff7efd

View File

@ -275,7 +275,7 @@ func mainFunc() int {
// Wait until one tick has passed. This is a workaround // Wait until one tick has passed. This is a workaround
if rcfg.CliArgs["once"] == "true" { if rcfg.CliArgs["once"] == "true" {
var x float64 = (1.8 * float64(rcfg.ConfigFile.Interval)) x := 1.8 * float64(rcfg.ConfigFile.Interval)
time.Sleep(time.Duration(int(x)) * time.Second) time.Sleep(time.Duration(int(x)) * time.Second)
shutdown(&rcfg) shutdown(&rcfg)
} }