aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-05 07:18:48 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-05 07:18:48 +0000
commit2de83bdfa1a862386de06c9003b60ba14ce3b368 (patch)
tree42adbc1886ba37d239ba79307ed1b5cccbb1d232 /lualib/rspamadm
parentd63f592f9024d03d065335a5b18f3c861c05e9ae (diff)
downloadrspamd-2de83bdfa1a862386de06c9003b60ba14ce3b368.tar.gz
rspamd-2de83bdfa1a862386de06c9003b60ba14ce3b368.zip
[Minor] Fix rounding
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r--lualib/rspamadm/rescore.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/rspamadm/rescore.lua b/lualib/rspamadm/rescore.lua
index cbdca924b..5ef1c4267 100644
--- a/lualib/rspamadm/rescore.lua
+++ b/lualib/rspamadm/rescore.lua
@@ -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