aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-22 19:07:56 +0100
committerKim Alvefur <zash@zash.se>2021-11-22 19:07:56 +0100
commit2f274d8026b201967ecb19eee721d0321878e4b4 (patch)
tree39cedfc8b8aeb6920cfe541824c1754c6d7918e1 /plugins/mod_admin_shell.lua
parenta70a8c4ffce9d970cf5611a2a32c2434df01d4ae (diff)
downloadprosody-2f274d8026b201967ecb19eee721d0321878e4b4.tar.gz
prosody-2f274d8026b201967ecb19eee721d0321878e4b4.zip
mod_admin_shell: List periodic tasks in module:info
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index ac7ad58a..d20101aa 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -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