diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-03 09:05:41 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-03 09:05:41 +0100 |
commit | 8aa16eaec0ad9d66d3da9b453bf9159f8446ff2a (patch) | |
tree | 9f4bd9460d7e32aa0dcb8c21a3b9c354d9040797 /plugins | |
parent | d6070eea1ff8629f8bd71578ea4288e552b9e2db (diff) | |
download | prosody-8aa16eaec0ad9d66d3da9b453bf9159f8446ff2a.tar.gz prosody-8aa16eaec0ad9d66d3da9b453bf9159f8446ff2a.zip |
mod_cron: Add a 'weekly' job frequency
Diffstat (limited to 'plugins')
-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 e23d6815..cbb551e8 100644 --- a/plugins/mod_cron.lua +++ b/plugins/mod_cron.lua @@ -3,7 +3,7 @@ module:set_global(); local async = require("util.async"); local datetime = require("util.datetime"); -local periods = { hourly = 3600; daily = 86400 } +local periods = { hourly = 3600; daily = 86400; weekly = 7 * 86400 } local active_hosts = {} |