Skip to content

Commit

Permalink
Allow host to use IP address or hostnames with digits in them
Browse files Browse the repository at this point in the history
  • Loading branch information
kamal authored and igrigorik committed Oct 10, 2009
1 parent d9167dd commit a51331b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoperf.rb
Expand Up @@ -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
}
Expand Down Expand Up @@ -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})

Expand Down

0 comments on commit a51331b

Please sign in to comment.