diff options
-rw-r--r-- | rules/misc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index cd6a76028..2ea175a80 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -101,7 +101,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 |