comparison mod_statistics/mod_statistics.lua @ 1584:4713f9d453ec

mod_statistics: Remove 'return' so SESS lines are pushed to all sessions (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Mon, 08 Dec 2014 14:27:10 +0100
parents 7dbde05b48a9
children d7c014f91189
comparison
equal deleted inserted replaced
1583:c1bb2a64aabb 1584:4713f9d453ec
42 stanzas_in.presence, stanzas_out.presence, 42 stanzas_in.presence, stanzas_out.presence,
43 stanzas_in.iq, stanzas_out.iq, 43 stanzas_in.iq, stanzas_out.iq,
44 stats.bytes_in, stats.bytes_out); 44 stats.bytes_in, stats.bytes_out);
45 local jid = session[jid_fields[session.type]] or ""; 45 local jid = session[jid_fields[session.type]] or "";
46 for conn in pairs(sessions) do 46 for conn in pairs(sessions) do
47 return conn:write(("SESS %q %q %s\n"):format(id, jid, s)); 47 conn:write(("SESS %q %q %s\n"):format(id, jid, s));
48 end 48 end
49 end 49 end
50 50
51 local available_stats = stats.stats; 51 local available_stats = stats.stats;
52 local active_sessions = stats.active_sessions; 52 local active_sessions = stats.active_sessions;