commit 061034e: [Minor] fix lua [[...]] is deprecated near '['
Evgeny Bobkin
evgen.ibqn at gmail.com
Fri Jul 12 16:42:03 UTC 2019
Author: Evgeny Bobkin
Date: 2019-07-12 09:04:09 +0200
URL: https://github.com/rspamd/rspamd/commit/061034e4c552b1432defe6b099d071d6834dc319 (refs/pull/2975/head)
[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
More information about the Commits
mailing list