diff options
author | Kim Alvefur <zash@zash.se> | 2023-07-30 13:03:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-07-30 13:03:40 +0200 |
commit | 3a071d87b8dd5d6d29b79a4166e3ef0fda83df1a (patch) | |
tree | 75cced75a95a6bc7ce7b4989bbddb7a6a21b1dd9 /plugins | |
parent | 4d699626445b5a5b03435732b3cded4057b704c2 (diff) | |
download | prosody-3a071d87b8dd5d6d29b79a4166e3ef0fda83df1a.tar.gz prosody-3a071d87b8dd5d6d29b79a4166e3ef0fda83df1a.zip |
mod_cron: Revert bbd3ac65640d
Maybe it is better to run daily and weekly tasks 'now' on the theory
that people set these things up during times that are appropriate for
maintenance already, so the same time next day or next week might be
fine for periodic cleanup.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_cron.lua | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/mod_cron.lua b/plugins/mod_cron.lua index eef25755..a39d05d5 100644 --- a/plugins/mod_cron.lua +++ b/plugins/mod_cron.lua @@ -22,10 +22,6 @@ function module.add_host(host_module) task.save = save_task; module:log("debug", "%s task %s added, last run %s", task.when, task.id, task.last and datetime.datetime(task.last) or "never"); - if task.last == nil then - local now = os.time(); - task.last = now - now % periods[task.when]; - end return true end |