diff --git a/plugins/mod_cron.lua b/plugins/mod_cron.lua index 158c31860..29c1aa934 100644 --- a/plugins/mod_cron.lua +++ b/plugins/mod_cron.lua @@ -62,7 +62,7 @@ scheduled = module:add_timer(cron_initial_delay, function() module:log("debug", "Running periodic tasks for host %s", host); for _, task in ipairs(module:context(host):get_host_items("task")) do task_runner:run(task); end end - module:log("debug", "Wait %ds", delay); + module:log("debug", "Wait %gs", delay); return delay end); diff --git a/teal-src/prosody/plugins/mod_cron.tl b/teal-src/prosody/plugins/mod_cron.tl index 13f4a588f..4defc8082 100644 --- a/teal-src/prosody/plugins/mod_cron.tl +++ b/teal-src/prosody/plugins/mod_cron.tl @@ -108,7 +108,7 @@ scheduled = module:add_timer(cron_initial_delay, function() : number task_runner:run(task); end end - module:log("debug", "Wait %ds", delay); + module:log("debug", "Wait %gs", delay); return delay; end);