mod_csi: Update correct variables when counting states

This commit is contained in:
Kim Alvefur 2024-09-21 22:07:36 +02:00
parent 07d96d6b75
commit 98795d0b6e

View file

@ -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