Mercurial > prosody-hg
comparison plugins/mod_cron.lua @ 13443:98a6ec4ce140
mod_cron: Fix log format to account for float that was integer before
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 24 Feb 2024 14:35:17 +0100 |
| parents | 92301fa7a673 |
| children | 899453f11f50 |
comparison
equal
deleted
inserted
replaced
| 13442:eb0fab7e5d32 | 13443:98a6ec4ce140 |
|---|---|
| 60 local delay = spread(cron_check_delay, cron_spread_factor); | 60 local delay = spread(cron_check_delay, cron_spread_factor); |
| 61 for host in pairs(active_hosts) do | 61 for host in pairs(active_hosts) do |
| 62 module:log("debug", "Running periodic tasks for host %s", host); | 62 module:log("debug", "Running periodic tasks for host %s", host); |
| 63 for _, task in ipairs(module:context(host):get_host_items("task")) do task_runner:run(task); end | 63 for _, task in ipairs(module:context(host):get_host_items("task")) do task_runner:run(task); end |
| 64 end | 64 end |
| 65 module:log("debug", "Wait %ds", delay); | 65 module:log("debug", "Wait %gs", delay); |
| 66 return delay | 66 return delay |
| 67 end); | 67 end); |
| 68 | 68 |
| 69 module:add_item("shell-command", { | 69 module:add_item("shell-command", { |
| 70 section = "cron"; | 70 section = "cron"; |
