From 1bf943099d2254e503e5b6c147ad1e5c2f686aa8 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 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 -- 2.39.5