diff options
author | Kim Alvefur <zash@zash.se> | 2020-08-22 14:34:57 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-08-22 14:34:57 +0200 |
commit | 6c5dd70664236b524f3b2524f3ed48cbc8f0bc42 (patch) | |
tree | aa7fc3e98dfb65719ea702a3d05ef96afa1d3849 /plugins | |
parent | 460a55c86eb3ab164c54c7b49fe1b84d78520b85 (diff) | |
download | prosody-6c5dd70664236b524f3b2524f3ed48cbc8f0bc42.tar.gz prosody-6c5dd70664236b524f3b2524f3ed48cbc8f0bc42.zip |
mod_admin_shell: Report CSI queue length from mod_csi_simple
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 3650e7f6..5b4c2a61 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -544,7 +544,11 @@ local function session_flags(session, line) line[#line+1] = "(sm)"; end if session.state then - line[#line+1] = string.format("(csi:%s)", session.state); + if type(session.csi_counter) == "number" then + line[#line+1] = string.format("(csi:%s queue #%d)", session.state, session.csi_counter); + else + line[#line+1] = string.format("(csi:%s)", session.state); + end end if session.ip and session.ip:match(":") then line[#line+1] = "(IPv6)"; |