]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix percents output in R_PARTS_DIFFER
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Apr 2016 12:23:40 +0000 (13:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 29 Apr 2016 12:24:12 +0000 (13:24 +0100)
rules/misc.lua

index 68a64f7befc34ff0e3190c6849b323f9f9638a06..11f482562f18a0fd29c5325f0ecb9317f5480aed 100644 (file)
@@ -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