Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 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 |
parent | 11041:d00bfa75999d |
child | 11361:dab1a6e46087 |
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)";