changeset 3217:063abaab666f

mod_statistics: Split module:shared() into multiple calls, multiple params may be deprecated soon
author Matthew Wild <mwild1@gmail.com>
date Tue, 07 Aug 2018 21:11:37 +0100
parents 5d35e6b409e0
children 67f1d1f22625
files mod_statistics/stats.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_statistics/stats.lib.lua	Tue Aug 07 19:12:52 2018 +0100
+++ b/mod_statistics/stats.lib.lua	Tue Aug 07 21:11:37 2018 +0100
@@ -29,7 +29,8 @@
 local active_sessions, active_jids = {}, {};
 local c2s_sessions, s2s_sessions;
 if prosody and prosody.arg then
-	c2s_sessions, s2s_sessions = module:shared("/*/c2s/sessions", "/*/s2s/sessions");
+	c2s_sessions = module:shared("/*/c2s/sessions");
+	s2s_sessions = module:shared("/*/s2s/sessions");
 end
 
 local stats = {