mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
refactor: Modify analytics sampling logic to use 1% of users
This commit is contained in:
parent
ded60036cb
commit
6e076a40a9
1 changed files with 5 additions and 2 deletions
|
@ -75,8 +75,11 @@ class Analytics:
|
|||
|
||||
assert args_analytics is None, args_analytics
|
||||
|
||||
# ask 1/16 of the users
|
||||
return self.user_id < "1"
|
||||
if not self.user_id:
|
||||
return False
|
||||
|
||||
# ask 1% of users
|
||||
return self.user_id < "03"
|
||||
|
||||
def get_data_file_path(self):
|
||||
data_file = Path.home() / ".aider" / "analytics.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue