aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-08-22 14:34:57 +0200
committerKim Alvefur <zash@zash.se>2020-08-22 14:34:57 +0200
commitb6e1f9feb9e17f0c430683318b475aa806058955 (patch)
treeaa7fc3e98dfb65719ea702a3d05ef96afa1d3849 /plugins
parentfcfc09d01b44dfc731d04ac87a2fd3bb010a5658 (diff)
downloadprosody-b6e1f9feb9e17f0c430683318b475aa806058955.tar.gz
prosody-b6e1f9feb9e17f0c430683318b475aa806058955.zip
mod_admin_shell: Report CSI queue length from mod_csi_simple
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_shell.lua6
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)";