diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-11-25 10:52:38 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-11-25 10:52:38 +0000 |
commit | 4d9be4459247864c90c36346d141678e51bd3f3c (patch) | |
tree | 11d3339d938e58bd38e2442ccf203c0ec4d059cb | |
parent | b373c5e17b7c3aceb15cdecef5c64775725b533e (diff) | |
download | rspamd-4d9be4459247864c90c36346d141678e51bd3f3c.tar.gz rspamd-4d9be4459247864c90c36346d141678e51bd3f3c.zip |
[Minor] Improve format
-rw-r--r-- | lualib/rspamadm/fuzzy_stat.lua | 4 |
1 files 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('') |