mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_cron: Fix log format to account for float that was integer before
This commit is contained in:
parent
cef925e9a5
commit
01a44e88db
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ scheduled = module:add_timer(cron_initial_delay, function()
|
||||||
module:log("debug", "Running periodic tasks for host %s", host);
|
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
|
for _, task in ipairs(module:context(host):get_host_items("task")) do task_runner:run(task); end
|
||||||
end
|
end
|
||||||
module:log("debug", "Wait %ds", delay);
|
module:log("debug", "Wait %gs", delay);
|
||||||
return delay
|
return delay
|
||||||
end);
|
end);
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ scheduled = module:add_timer(cron_initial_delay, function() : number
|
||||||
task_runner:run(task);
|
task_runner:run(task);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
module:log("debug", "Wait %ds", delay);
|
module:log("debug", "Wait %gs", delay);
|
||||||
return delay;
|
return delay;
|
||||||
end);
|
end);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue