From b6efa4e2c79346a0f76f58a27ffac329e8776cfd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 23 Apr 2017 11:10:17 +0100 Subject: [PATCH] [Minor] Format floating point number --- src/plugins/lua/ratelimit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5