Kouhei Sutou
null+****@clear*****
Tue Oct 8 10:02:45 JST 2013
Kouhei Sutou 2013-10-08 10:02:45 +0900 (Tue, 08 Oct 2013) New Revision: 241fd1d92f7a034989594810089d07302b7131af https://github.com/droonga/http-benchmark/commit/241fd1d92f7a034989594810089d07302b7131af Message: Use times instead of upto with -1 It is simpler. Modified files: lib/droonga/http-benchmark/runner.rb Modified: lib/droonga/http-benchmark/runner.rb (+1 -1) =================================================================== --- lib/droonga/http-benchmark/runner.rb 2013-10-07 19:31:11 +0900 (befdf5e) +++ lib/droonga/http-benchmark/runner.rb 2013-10-08 10:02:45 +0900 (3cfb1b1) @@ -55,7 +55,7 @@ module Droonga requests_queue = Queue.new results_queue = Queue.new - @clients = 0.upto(@n_clients - 1).collect do |index| + @clients = @n_clients.times.collect do |index| client = Client.new(:requests => requests_queue, :results => results_queue, :wait => @wait) -------------- next part -------------- HTML����������������������������... Télécharger