From c62f81198deecc57c6239b2f2d0eaf50ed012bfd Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 6 Nov 2026 09:36:12 +0000 Subject: Fix typos in comment --- src/Spamcheck.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Spamcheck.hs b/src/Spamcheck.hs index 3191794..1ad0f4e 100644 --- a/src/Spamcheck.hs +++ b/src/Spamcheck.hs @@ -42,7 +42,7 @@ decay prevScore timeDeltaSecs = prevScore * exp(-log 0.5 / halfTime * (-timeDelt -- val * decay 1.0 (1/n) + 1 == val -- val == 1 / (1 - decay 1.0 (1/n)) -- --- Steady state score at 1..8 requests per second: (assuming unbounded score; +-- Steady state score at n requests per second: (assuming unbounded score; -- this is the maximum score attained in the steady state loop, i.e. the thing -- checked by 'tick') -- @@ -52,7 +52,7 @@ decay prevScore timeDeltaSecs = prevScore * exp(-log 0.5 / halfTime * (-timeDelt -- (35.0,101.48947803609427) -- (40.0,115.91632529852637) -- --- Thus threshold 35 req/s gets marked as spam but 34 doesn't. +-- Thus with threshold 100, 35 req/s gets marked as spam but 34 doesn't. -- -- >>> decay maxScore 13.32 + 1.0 -- 99.88723390392818 -- cgit v1.3.1