From 98795d0b6eb9ed15063e8699b269abc30271d106 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 21 Sep 2024 22:07:36 +0200 Subject: mod_csi: Update correct variables when counting states --- plugins/mod_csi.lua | 4 ++-- 1 file 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 -- cgit v1.2.3