Mercurial > prosody-modules
diff mod_statistics/stats.lib.lua @ 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 | dded110af017 |
children |
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 = {