YUKI Hiroshi
null+****@clear*****
Mon Oct 7 17:08:43 JST 2013
YUKI Hiroshi 2013-10-07 17:08:43 +0900 (Mon, 07 Oct 2013) New Revision: e31e5b197e7444ea1add710016390269e070cb20 https://github.com/droonga/http-benchmark/commit/e31e5b197e7444ea1add710016390269e070cb20 Message: Round float n_times to integer Modified files: lib/droonga/http-benchmark.rb Modified: lib/droonga/http-benchmark.rb (+1 -1) =================================================================== --- lib/droonga/http-benchmark.rb 2013-10-07 17:05:51 +0900 (7dcc9e4) +++ lib/droonga/http-benchmark.rb 2013-10-07 17:08:43 +0900 (7cea4d8) @@ -172,7 +172,7 @@ module Droonga end base_patterns = base_patterns.shuffle - n_requests.times do |count| + n_requests.round.times do |count| request = base_patterns[count % base_patterns.size] request[:host] ||= @default_host request[:port] ||= @default_port -------------- next part -------------- HTML����������������������������... Download