mod_admin_shell: Report CSI queue length from mod_csi_simple
authorKim Alvefur <zash@zash.se>
Sat, 22 Aug 2020 14:34:57 +0200
changeset 11046 8a243ab49cb5
parent 11045 d00bfa75999d
child 11047 d105e787f5ed
mod_admin_shell: Report CSI queue length from mod_csi_simple
plugins/mod_admin_shell.lua
--- 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)";