]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] fix lua [[...]] is deprecated near '[' 2975/head
authorEvgeny Bobkin <evgen.ibqn@gmail.com>
Fri, 12 Jul 2019 07:04:09 +0000 (09:04 +0200)
committerEvgeny Bobkin <evgen.ibqn@gmail.com>
Fri, 12 Jul 2019 07:04:09 +0000 (09:04 +0200)
lualib/rspamadm/rescore.lua

index cffba5927876bd140bb915f237c824d5f1c6163f..d603b0206122596109d8396349df9380bb95c434 100644 (file)
@@ -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