aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/rspamadm/fuzzy_stat.lua4
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('')