summaryrefslogtreecommitdiff
path: root/src/Spamcheck.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-11-06 10:36:12 +0100
committerTom Smeding <tom@tomsmeding.com>2026-11-06 10:36:12 +0100
commitc62f81198deecc57c6239b2f2d0eaf50ed012bfd (patch)
tree0a4b393b9954d9fac07df4f37c6871313a36126d /src/Spamcheck.hs
parente3ed5f39e8a83d070466964c8ac37246a260c778 (diff)
Fix typos in comment
Diffstat (limited to 'src/Spamcheck.hs')
-rw-r--r--src/Spamcheck.hs4
1 files changed, 2 insertions, 2 deletions
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