diff options
author | Kim Alvefur <zash@zash.se> | 2024-08-17 23:15:14 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-08-17 23:15:14 +0200 |
commit | 8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3 (patch) | |
tree | 04f3e0072213a2d27dab77d35ecd5f216ec05ffe /plugins | |
parent | 0a910917e7a4c846444d4e4bdb1fe212d5f6145e (diff) | |
download | prosody-8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3.tar.gz prosody-8d00eaa0c74f4f93ef53027b8c4416f6c2df16c3.zip |
mod_csi: Rename unused loop variables to '_' [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_csi.lua | 4 |
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 |