lib/puma/benchmark/core.rb in puma-benchmark-0.1.0 vs lib/puma/benchmark/core.rb in puma-benchmark-0.1.1

- old
+ new

@@ -6,11 +6,11 @@ module Benchmark class Core def initialize(params) @base_url = params[:base_url] || 'http://localhost:3000' @api = params[:api] - @max_threads = params[:threads].to_i || 4 - @max_workers = params[:workers].to_i || 4 + @max_threads = (params[:threads] || 4).to_i + @max_workers = (params[:workers]|| 4).to_i @duration = params[:duration] || 30 @environment = params[:environment] || 'production' @result = [] end \ No newline at end of file