commit 3d4a412: [Minor] Print flags stat
Vsevolod Stakhov
vsevolod at rspamd.com
Tue May 9 05:21:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-05-09 06:14:27 +0100
URL: https://github.com/rspamd/rspamd/commit/3d4a4128fc5e4d810b0bc4815105dcfae41bde90 (HEAD -> master)
[Minor] Print flags stat
---
lualib/rspamadm/fuzzy_stat.lua | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lualib/rspamadm/fuzzy_stat.lua b/lualib/rspamadm/fuzzy_stat.lua
index 3959103a5..9e382c06f 100644
--- a/lualib/rspamadm/fuzzy_stat.lua
+++ b/lualib/rspamadm/fuzzy_stat.lua
@@ -291,6 +291,16 @@ return function(args, res)
end
end
+ if key_stat.flags then
+ print('')
+ print('\tFlags stat:')
+ for flag,v in ipairs(key_stat.flags) do
+ print(string.format('\t%s', flag))
+ print_stat(v, '\t\t')
+ print('')
+ end
+ end
+
print('')
end
end
More information about the Commits
mailing list