diff options
Diffstat (limited to 'plugins/mod_cron.lua')
-rw-r--r-- | plugins/mod_cron.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_cron.lua b/plugins/mod_cron.lua index f18d3a9a..f0c85615 100644 --- a/plugins/mod_cron.lua +++ b/plugins/mod_cron.lua @@ -40,7 +40,7 @@ function module.add_host(host_module) 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(); |