mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_csi: Update correct variables when counting states
This commit is contained in:
parent
07d96d6b75
commit
98795d0b6e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue