[Groonga-commit] droonga/http-benchmark at ab4c789 [master] Fix one more request bug

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 7 15:54:41 JST 2013


Kouhei Sutou	2013-10-07 15:54:41 +0900 (Mon, 07 Oct 2013)

  New Revision: ab4c789c380fb57e386728f42bba50afddd38265
  https://github.com/droonga/http-benchmark/commit/ab4c789c380fb57e386728f42bba50afddd38265

  Message:
    Fix one more request bug
    
        0.upto(2) {|i| p i} # -> 0, 1, 2
        2.times   {|i| p i} # -> 0, 1

  Modified files:
    lib/droonga/http-benchmark.rb

  Modified: lib/droonga/http-benchmark.rb (+1 -1)
===================================================================
--- lib/droonga/http-benchmark.rb    2013-10-07 15:52:20 +0900 (734169b)
+++ lib/droonga/http-benchmark.rb    2013-10-07 15:54:41 +0900 (8ca7f77)
@@ -52,7 +52,7 @@ class HttpBenchmark
     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
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index