commit 3680254: [Minor] Fuzzystat: Fix case of the options
Vsevolod Stakhov
vsevolod at rspamd.com
Thu Jan 5 16:21:04 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-01-05 16:19:08 +0000
URL: https://github.com/rspamd/rspamd/commit/3680254ecbe6f0414ca6afda5d139a61e2aea405 (HEAD -> master)
[Minor] Fuzzystat: Fix case of the options
---
lualib/rspamadm/fuzzy_stat.lua | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lualib/rspamadm/fuzzy_stat.lua b/lualib/rspamadm/fuzzy_stat.lua
index 76a75956d..c3372ca91 100644
--- a/lualib/rspamadm/fuzzy_stat.lua
+++ b/lualib/rspamadm/fuzzy_stat.lua
@@ -254,7 +254,7 @@ return function(args, res)
print('')
local res_keys = st['keys']
- if res_keys and not opts['no-keys'] and not opts['short'] then
+ if res_keys and not opts['no_keys'] and not opts['short'] then
print('Keys statistics:')
-- Convert into an array to allow sorting
local sorted_keys = sort_hash_table(res_keys, opts, 'key')
@@ -269,7 +269,7 @@ return function(args, res)
print_stat(key_stat, '\t')
- if key_stat['ips'] and not opts['no-ips'] then
+ if key_stat['ips'] and not opts['no_ips'] then
print('')
print('\tIPs stat:')
local sorted_ips = sort_hash_table(key_stat['ips'], opts, 'ip')
@@ -284,7 +284,7 @@ return function(args, res)
print('')
end
end
- if st['errors_ips'] and not opts['no-ips'] and not opts['short'] then
+ if st['errors_ips'] and not opts['no_ips'] and not opts['short'] then
print('')
print('Errors IPs statistics:')
local ip_stat = st['errors_ips']
@@ -300,7 +300,7 @@ return function(args, res)
end
end
- if not opts['no-ips'] and not opts['short'] then
+ if not opts['no_ips'] and not opts['short'] then
print('')
print('IPs statistics:')
More information about the Commits
mailing list