From: Vsevolod Stakhov Date: Sun, 23 Apr 2017 10:10:17 +0000 (+0100) Subject: [Minor] Format floating point number X-Git-Tag: 1.6.0~332 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1bf943099d2254e503e5b6c147ad1e5c2f686aa8;p=rspamd.git [Minor] Format floating point number --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 15cbe953c..7e1043caf 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -291,7 +291,7 @@ local function check_limits(task, args) if mult > 0.5 then task:insert_result(ratelimit_symbol, mult, - rtype .. ':' .. tostring(mult)) + rtype .. ':' .. string.format('%.2f', mult)) end else if bucket > threshold then