Skip to content

Commit

Permalink
aider: fix: Ensure iterations is not larger than sample size and at l…
Browse files Browse the repository at this point in the history
…east 1
  • Loading branch information
schpet committed Sep 8, 2024
1 parent 5c42a72 commit ce3a7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/cool_id_benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def clean_up_data
iterations = ARGV[1] ? ARGV[1].to_i : [10_000, sample_size].min

# Ensure iterations is not larger than sample size and at least 1
iterations = [[iterations, sample_size].min, 1].max
iterations = iterations.clamp(1, sample_size)

# Main execution
clean_up_data
Expand Down

0 comments on commit ce3a7bc

Please sign in to comment.