From fa85bdceeda7b7d5a07d899c32473f69799f13a9 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 20 Nov 2024 17:58:16 -0800 Subject: [PATCH] fix: Correct sampling logic by changing <= to < in UUID comparison --- aider/analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/analytics.py b/aider/analytics.py index 453879097..baae92ae4 100644 --- a/aider/analytics.py +++ b/aider/analytics.py @@ -100,7 +100,7 @@ class Analytics: # Convert percentage to hex threshold (1% = "04", 10% = "1a", etc) # Using first 2 hex digits (0-ff) means each digit is 1/256 of the space threshold = format(int(255 * percent / 100), "02x") - return uuid_str <= threshold + return uuid_str < threshold def get_data_file_path(self): data_file = Path.home() / ".aider" / "analytics.json"