diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-01-05 16:19:08 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-01-05 16:19:08 +0000 |
commit | 3680254ecbe6f0414ca6afda5d139a61e2aea405 (patch) | |
tree | 71ac3b6ff0276abe57371bf3c506347634575112 | |
parent | aff665421fa575c7e11f84a4b3d0b97f80487a5a (diff) | |
download | rspamd-3680254ecbe6f0414ca6afda5d139a61e2aea405.tar.gz rspamd-3680254ecbe6f0414ca6afda5d139a61e2aea405.zip |
[Minor] Fuzzystat: Fix case of the options
-rw-r--r-- | lualib/rspamadm/fuzzy_stat.lua | 8 |
1 files 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:') |