mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 23:19:06 +01:00
Merge branch 'develop' of github.com:ClusterCockpit/cc-metric-collector into develop
This commit is contained in:
commit
8f9bff7efd
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user