From 89b41a7af878be720fa0f19f70051eb6232a068b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= <vladimir.cunat@nic.cz> Date: Thu, 22 Dec 2022 13:58:53 +0100 Subject: [PATCH] predict: fully deactivate prediction with `period = 0` That setting is recommended by documentation but it would still leave the timer triggering repeatedly. Maybe it didn't cause any practical difference, but it was unnecessary and possibly confusing. --- modules/predict/predict.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/predict/predict.lua b/modules/predict/predict.lua index 4511fc9b9..0117fd521 100644 --- a/modules/predict/predict.lua +++ b/modules/predict/predict.lua @@ -140,7 +140,7 @@ function predict.process() end function predict.init() - if predict.window > 0 then + if predict.window > 0 and predict.period > 0 then predict.current_epoch = predict.epoch() predict.ev_sample = event.after(next_event(), predict.process) end -- GitLab