From dbef9b71fe94958e3a6bf1eab13c438464badc6e Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Fri, 5 Jan 2024 20:12:32 +0000 Subject: [PATCH] fix: threshold is inclusive --- bento_beacon/utils/censorship.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_beacon/utils/censorship.py b/bento_beacon/utils/censorship.py index 582cfb32..49a8005d 100644 --- a/bento_beacon/utils/censorship.py +++ b/bento_beacon/utils/censorship.py @@ -13,7 +13,7 @@ def get_censorship_threshold(): def censored_count(count): t = get_censorship_threshold() - if count < t: + if count <= t: return 0 return count