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 | b6e1f9feb9e17f0c430683318b475aa806058955 (patch) | |
tree | aa7fc3e98dfb65719ea702a3d05ef96afa1d3849 | |
parent | fcfc09d01b44dfc731d04ac87a2fd3bb010a5658 (diff) | |
download | prosody-b6e1f9feb9e17f0c430683318b475aa806058955.tar.gz prosody-b6e1f9feb9e17f0c430683318b475aa806058955.zip |
mod_admin_shell: Report CSI queue length from mod_csi_simple
-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)"; |