From 061034e4c552b1432defe6b099d071d6834dc319 Mon Sep 17 00:00:00 2001 From: Evgeny Bobkin Date: Fri, 12 Jul 2019 09:04:09 +0200 Subject: [PATCH] [Minor] fix lua [[...]] is deprecated near '[' --- lualib/rspamadm/rescore.lua | 6 +++--- 1 file 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 -- 2.39.5