# HG changeset patch # User Kim Alvefur # Date 1637604476 -3600 # Node ID bef2a59b00d1cd59dae883366a986fd61e85c08f # Parent 6f4790b8deec9b36408624bf9ff0eac1e85b0f16 mod_admin_shell: List periodic tasks in module:info diff -r 6f4790b8deec -r bef2a59b00d1 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Mon Nov 22 14:54:32 2021 +0100 +++ b/plugins/mod_admin_shell.lua Mon Nov 22 19:07:56 2021 +0100 @@ -441,6 +441,7 @@ ["storage-provider"] = "Storage driver", ["measure"] = "Legacy metrics", ["metric"] = "Metrics", + ["task"] = "Periodic task", }; local item_formatters = { ["feature"] = tostring, @@ -454,6 +455,7 @@ ["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