Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7866:b6d99132d7dc
mod_c2s, mod_s2s: Remove comment that no longer applies since 946871f6e3c8
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Jan 2017 11:18:00 +0100 |
parent | 7862:f5cbbf69cac8 |
child | 7868:11fcdef5022f |
child | 7954:60b83f83f317 |
comparison
equal
deleted
inserted
replaced
7865:a8cc495a65dc | 7866:b6d99132d7dc |
---|---|
35 | 35 |
36 local stream_callbacks = { default_ns = "jabber:client" }; | 36 local stream_callbacks = { default_ns = "jabber:client" }; |
37 local listener = {}; | 37 local listener = {}; |
38 | 38 |
39 module:hook("stats-update", function () | 39 module:hook("stats-update", function () |
40 -- Connection counter resets to 0 on load and reload | |
41 -- Bump it up to current value | |
42 local count = 0; | 40 local count = 0; |
43 for _ in pairs(sessions) do | 41 for _ in pairs(sessions) do |
44 count = count + 1; | 42 count = count + 1; |
45 end | 43 end |
46 measure_connections(count); | 44 measure_connections(count); |