# HG changeset patch # User Kim Alvefur # Date 1708781717 -3600 # Node ID 98a6ec4ce14090aa8592833082dc07229ca21b45 # Parent eb0fab7e5d323cd097cec2ab2a20c7ea027a96db mod_cron: Fix log format to account for float that was integer before diff -r eb0fab7e5d32 -r 98a6ec4ce140 plugins/mod_cron.lua --- a/plugins/mod_cron.lua Sat Feb 24 14:32:59 2024 +0100 +++ b/plugins/mod_cron.lua Sat Feb 24 14:35:17 2024 +0100 @@ -62,7 +62,7 @@ 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 -r eb0fab7e5d32 -r 98a6ec4ce140 teal-src/prosody/plugins/mod_cron.tl --- a/teal-src/prosody/plugins/mod_cron.tl Sat Feb 24 14:32:59 2024 +0100 +++ b/teal-src/prosody/plugins/mod_cron.tl Sat Feb 24 14:35:17 2024 +0100 @@ -108,7 +108,7 @@ task_runner:run(task); end end - module:log("debug", "Wait %ds", delay); + module:log("debug", "Wait %gs", delay); return delay; end);