Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11041:d00bfa75999d | 11042:8a243ab49cb5 |
---|---|
542 end | 542 end |
543 if session.smacks then | 543 if session.smacks then |
544 line[#line+1] = "(sm)"; | 544 line[#line+1] = "(sm)"; |
545 end | 545 end |
546 if session.state then | 546 if session.state then |
547 line[#line+1] = string.format("(csi:%s)", session.state); | 547 if type(session.csi_counter) == "number" then |
548 line[#line+1] = string.format("(csi:%s queue #%d)", session.state, session.csi_counter); | |
549 else | |
550 line[#line+1] = string.format("(csi:%s)", session.state); | |
551 end | |
548 end | 552 end |
549 if session.ip and session.ip:match(":") then | 553 if session.ip and session.ip:match(":") then |
550 line[#line+1] = "(IPv6)"; | 554 line[#line+1] = "(IPv6)"; |
551 end | 555 end |
552 if session.remote then | 556 if session.remote then |