mod_cron: Fix log format to account for float that was integer before
authorKim Alvefur <zash@zash.se>
Sat, 24 Feb 2024 14:35:17 +0100
changeset 13447 98a6ec4ce140
parent 13446 eb0fab7e5d32
child 13448 783706350faa
mod_cron: Fix log format to account for float that was integer before
plugins/mod_cron.lua
teal-src/prosody/plugins/mod_cron.tl
--- 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);
 
--- 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);