From 4d9be4459247864c90c36346d141678e51bd3f3c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 25 Nov 2024 10:52:38 +0000 Subject: [Minor] Improve format --- lualib/rspamadm/fuzzy_stat.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/rspamadm/fuzzy_stat.lua b/lualib/rspamadm/fuzzy_stat.lua index b9af35e22..011f9d37c 100644 --- a/lualib/rspamadm/fuzzy_stat.lua +++ b/lualib/rspamadm/fuzzy_stat.lua @@ -352,8 +352,8 @@ return function(args, res) if key_stat.ratelimit then print('') print('\tRatelimit stat:') - print(string.format('\tLimit: %s (%s leak rate)', - print_num(key_stat.ratelimit.limit.burst), print_num(key_stat.ratelimit.limit.rate))) + print(string.format('\tLimit: %s (%.2f per hour leak rate)', + print_num(key_stat.ratelimit.limit.burst), (key_stat.ratelimit.limit.rate or 0.0) * 3600)) print(string.format('\tCurrent: %s (%s last)', print_num(key_stat.ratelimit.cur), os.date('%c', key_stat.ratelimit.last))) print('') -- cgit v1.2.3