diff options
author | Kim Alvefur <zash@zash.se> | 2024-09-21 22:07:36 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-09-21 22:07:36 +0200 |
commit | 98795d0b6eb9ed15063e8699b269abc30271d106 (patch) | |
tree | c555a9221f8324631fce90bfeff6082eb20bed62 /plugins | |
parent | 07d96d6b7563b1830832078c425e2ac731573a2b (diff) | |
download | prosody-98795d0b6eb9ed15063e8699b269abc30271d106.tar.gz prosody-98795d0b6eb9ed15063e8699b269abc30271d106.zip |
mod_csi: Update correct variables when counting states
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 73c081b1..76a5afd4 100644 --- a/plugins/mod_csi.lua +++ b/plugins/mod_csi.lua @@ -34,9 +34,9 @@ module:hook_global("stats-update", function() if session.state == "inactive" then inactive = inactive + 1; elseif session.state == "active" then - inactive = inactive + 1; + active = active + 1; elseif session.state == "flushing" then - inactive = inactive + 1; + flushing = flushing + 1; end end end |