Fix for --once option

This commit is contained in:
Thomas Roehl 2022-05-13 13:50:19 +02:00
parent 9886f14d14
commit 0623691bab

View File

@ -291,7 +291,7 @@ func mainFunc() int {
// Wait until one tick has passed. This is a workaround
if rcfg.CliArgs["once"] == "true" {
x := 1.2 * float64(rcfg.Interval)
x := 1.2 * float64(rcfg.Interval.Seconds())
time.Sleep(time.Duration(int(x)) * time.Second)
shutdownSignal <- os.Interrupt
}