changeset 12190 | 7f25ac9d8f0d |
parent 12013 | f6fff0658108 |
child 12493 | 8b42575738f0 |
--- a/plugins/mod_cron.lua Fri Jan 14 17:00:13 2022 +0000 +++ b/plugins/mod_cron.lua Sat Jan 15 09:09:24 2022 +0100 @@ -40,7 +40,7 @@ function host_module.unload() active_hosts[host_module.host] = nil; end end -local function should_run(when, last) return not last or last + periods[when] <= os.time() end +local function should_run(when, last) return not last or last + periods[when] * 0.995 <= os.time() end local function run_task(task) local started_at = os.time();