From: Evgeny Bobkin Date: Fri, 12 Jul 2019 07:04:09 +0000 (+0200) Subject: [Minor] fix lua [[...]] is deprecated near '[' X-Git-Tag: 2.0~602^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2975%2Fhead;p=thirdparty%2Frspamd.git [Minor] fix lua [[...]] is deprecated near '[' --- diff --git a/lualib/rspamadm/rescore.lua b/lualib/rspamadm/rescore.lua index cffba59278..d603b02061 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