From fe1c169a023484fb248a8f2d4d8e4686593efbbd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 29 Apr 2016 13:23:40 +0100 Subject: [PATCH] [Minor] Fix percents output in R_PARTS_DIFFER --- rules/misc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/misc.lua b/rules/misc.lua index 68a64f7be..11f482562 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -50,7 +50,8 @@ rspamd_config.R_PARTS_DIFFER = function(task) -- We are not so confident about difference score = (nd - 0.5) end - task:insert_result('R_PARTS_DIFFER', score, tostring(100.0 * nd) .. '%') + task:insert_result('R_PARTS_DIFFER', score, + string.format('%.1f%%', tostring(100.0 * nd))) end end end -- 2.39.5