aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_csi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_csi.lua b/plugins/mod_csi.lua
index 63e0154f..75dc4148 100644
--- a/plugins/mod_csi.lua
+++ b/plugins/mod_csi.lua
@@ -34,8 +34,8 @@ module:hook_global("stats-update", function()
count:with_labels("active"):set(0);
count:with_labels("inactive"):set(0);
count:with_labels("flushing"):set(0);
- for user, user_session in pairs(sessions) do
- for resource, session in pairs(user_session.sessions) do
+ for _, user_session in pairs(sessions) do
+ for _, session in pairs(user_session.sessions) do
if session.state == "inactive" or session.state == "active" or session.state == "flushing" then
count:with_labels(session.state):add(1);
end