From 6b703244ecb44cd4bcfd8cedfbe3e09ccb92f955 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 20 Nov 2024 17:56:07 -0800 Subject: [PATCH] fix: Correct percentage calculation in is_uuid_in_percentage method --- aider/analytics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/analytics.py b/aider/analytics.py index baae92ae4..453879097 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"