Comparison

plugins/mod_csi.lua @ 13511:453979e16f2d

mod_csi: Rename unused loop variables to '_' [luacheck]
author Kim Alvefur <zash@zash.se>
date Sat, 17 Aug 2024 23:15:14 +0200
parent 13510:393e265aafba
child 13512:0b742bbbb819
comparison
equal deleted inserted replaced
13510:393e265aafba 13511:453979e16f2d
32 statsmanager.cork(); 32 statsmanager.cork();
33 -- Can't do :clear() on host-scoped measures? 33 -- Can't do :clear() on host-scoped measures?
34 count:with_labels("active"):set(0); 34 count:with_labels("active"):set(0);
35 count:with_labels("inactive"):set(0); 35 count:with_labels("inactive"):set(0);
36 count:with_labels("flushing"):set(0); 36 count:with_labels("flushing"):set(0);
37 for user, user_session in pairs(sessions) do 37 for _, user_session in pairs(sessions) do
38 for resource, session in pairs(user_session.sessions) do 38 for _, session in pairs(user_session.sessions) do
39 if session.state == "inactive" or session.state == "active" or session.state == "flushing" then 39 if session.state == "inactive" or session.state == "active" or session.state == "flushing" then
40 count:with_labels(session.state):add(1); 40 count:with_labels(session.state):add(1);
41 end 41 end
42 end 42 end
43 end 43 end