mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 06:07:37 +03:00
mod_admin_shell: List periodic tasks in module:info
This commit is contained in:
parent
a70a8c4ffc
commit
2f274d8026
1 changed files with 2 additions and 0 deletions
|
@ -441,6 +441,7 @@ function def_env.module:info(name, hosts)
|
|||
["storage-provider"] = "Storage driver",
|
||||
["measure"] = "Legacy metrics",
|
||||
["metric"] = "Metrics",
|
||||
["task"] = "Periodic task",
|
||||
};
|
||||
local item_formatters = {
|
||||
["feature"] = tostring,
|
||||
|
@ -454,6 +455,7 @@ function def_env.module:info(name, hosts)
|
|||
["metric"] = function(item)
|
||||
return ("%s (%s%s)%s"):format(item.name, suf(item.mf.unit, " "), item.mf.type_, pre(": ", item.mf.description));
|
||||
end,
|
||||
["task"] = function (item) return string.format("%s (%s)", item.name or item.id, item.when); end
|
||||
};
|
||||
|
||||
for host in hosts do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue