Changeset

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 13442:eb0fab7e5d32
children 13444:783706350faa
files plugins/mod_cron.lua teal-src/prosody/plugins/mod_cron.tl
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);