From: Vsevolod Stakhov Date: Sun, 23 Apr 2017 10:10:17 +0000 (+0100) Subject: [Minor] Format floating point number X-Git-Tag: 1.5.7~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6efa4e2c79346a0f76f58a27ffac329e8776cfd;p=rspamd.git [Minor] Format floating point number --- diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua index 341f9e658..dd999d7ba 100644 --- a/src/plugins/lua/ratelimit.lua +++ b/src/plugins/lua/ratelimit.lua @@ -287,7 +287,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