Software /
code /
prosody
Changeset
11042:8a243ab49cb5
mod_admin_shell: Report CSI queue length from mod_csi_simple
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Aug 2020 14:34:57 +0200 |
parents | 11041:d00bfa75999d |
children | 11043:d105e787f5ed |
files | plugins/mod_admin_shell.lua |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Sat Aug 22 14:34:33 2020 +0200 +++ b/plugins/mod_admin_shell.lua Sat Aug 22 14:34:57 2020 +0200 @@ -544,7 +544,11 @@ 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)";