Permalink
Browse files

Allow host to use IP address or hostnames with digits in them

  • Loading branch information...
1 parent d9167dd commit a51331be4c64bd46e726907d6d51d0e7be5273cc @kamal kamal committed with Oct 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoperf.rb
View
@@ -42,7 +42,7 @@ def parse_config(config_file)
else
new_value = ''
end
- conf[var_name] = new_value =~ /\d+/ ? new_value.to_i : new_value
+ conf[var_name] = new_value
end
end
}
@@ -85,7 +85,7 @@ def run
report = Table(:column_names => ['rate', 'conn/s', 'req/s', 'replies/s avg',
'errors', 'net io (KB/s)'])
- (@conf['low_rate']..@conf['high_rate']).step(@conf['rate_step']) do |rate|
+ (@conf['low_rate'].to_i..@conf['high_rate'].to_i).step(@conf['rate_step'].to_i) do |rate|
results[rate] = benchmark(@conf.merge({'httperf_rate' => rate}))
report << results[rate].merge({'rate' => rate})

0 comments on commit a51331b

Please sign in to comment.