Comparison

plugins/mod_s2s/mod_s2s.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 7865:a8cc495a65dc
child 7868:11fcdef5022f
child 8234:97b3ca502547
comparison
equal deleted inserted replaced
7865:a8cc495a65dc 7866:b6d99132d7dc
42 local sessions = module:shared("sessions"); 42 local sessions = module:shared("sessions");
43 43
44 local log = module._log; 44 local log = module._log;
45 45
46 module:hook("stats-update", function () 46 module:hook("stats-update", function ()
47 -- Connection counter resets to 0 on load and reload
48 -- Bump it up to current value
49 local count = 0; 47 local count = 0;
50 for _ in pairs(sessions) do 48 for _ in pairs(sessions) do
51 count = count + 1; 49 count = count + 1;
52 end 50 end
53 measure_connections(count); 51 measure_connections(count);