Skip to content

Commit

Permalink
Fix one more request bug
Browse files Browse the repository at this point in the history
    0.upto(2) {|i| p i} # -> 0, 1, 2
    2.times   {|i| p i} # -> 0, 1
  • Loading branch information
kou committed Oct 7, 2013
1 parent 19e2398 commit ab4c789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/http-benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def populate_request_pattern(request_pattern)
else
base_patterns = base_patterns.shuffle

0.upto(n_requests) do |count|
n_requests.times do |count|
@requests << base_patterns[count % base_patterns.size]
end
end
Expand Down

0 comments on commit ab4c789

Please sign in to comment.