]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix rounding
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Mar 2018 07:18:48 +0000 (07:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Mar 2018 07:18:48 +0000 (07:18 +0000)
lualib/rspamadm/rescore.lua

index cbdca924b05d5279dfa864d8eec4d790e843f550..5ef1c4267bca4024566fd10c58f1095f642ca811 100644 (file)
@@ -157,7 +157,7 @@ local function print_score_diff(new_symbol_scores, original_symbol_scores)
     logger.message(string.format("%-35s %-10s %-10s",
         symbol,
         original_symbol_scores[symbol] or 0,
-        rescore_utility.round(new_score, 2)))
+        lua_util.round(new_score, 2)))
   end
 
   logger.message("\nClass changes \n")
@@ -168,7 +168,7 @@ local function print_score_diff(new_symbol_scores, original_symbol_scores)
         logger.message(string.format("%-35s %-10s %-10s",
             symbol,
             original_symbol_scores[symbol] or 0,
-            rescore_utility.round(new_score, 2)))
+            lua_util.round(new_score, 2)))
       end
     end
   end