diff options
author | Evgeny Bobkin <evgen.ibqn@gmail.com> | 2019-07-12 09:04:09 +0200 |
---|---|---|
committer | Evgeny Bobkin <evgen.ibqn@gmail.com> | 2019-07-12 09:04:09 +0200 |
commit | 061034e4c552b1432defe6b099d071d6834dc319 (patch) | |
tree | 2f964d04269ab6ee7be7b1aad7b6f6844d995a17 | |
parent | 4c1013fbdd26d37a31ac5895e0ecefb248fa4c6d (diff) | |
download | rspamd-061034e4c552b1432defe6b099d071d6834dc319.tar.gz rspamd-061034e4c552b1432defe6b099d071d6834dc319.zip |
[Minor] fix lua [[...]] is deprecated near '['
-rw-r--r-- | lualib/rspamadm/rescore.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lualib/rspamadm/rescore.lua b/lualib/rspamadm/rescore.lua index cffba5927..d603b0206 100644 --- a/lualib/rspamadm/rescore.lua +++ b/lualib/rspamadm/rescore.lua @@ -298,13 +298,13 @@ local function print_stats(logs, messages, threshold) local file_stats, _ = rescore_utility.generate_statistics_from_logs(logs, messages, threshold) - local file_stat_format = [[ + local file_stat_format = [=[ F-score: %.2f False positive rate: %.2f %% False negative rate: %.2f %% Overall accuracy: %.2f %% Slowest message: %.2f (%s) -] ] +]=] logger.message("\nStatistics at threshold: " .. threshold) @@ -585,4 +585,4 @@ return { } --]] -return nil
\ No newline at end of file +return nil |