Permalink
Browse files

Fixed options parse bug

  • Loading branch information...
1 parent 537f5c9 commit 858ed927e66de70eca33ab98826026d92a662e4d @derekcollison derekcollison committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 benchmark/latency_perf.rb
View
4 benchmark/latency_perf.rb
@@ -16,11 +16,11 @@
opts.separator ""
opts.separator "options:"
- opts.on("-n ITERATIONS", "iterations to expect (default: #{$expected}") { |iter| $loop = iter.to_i }
+ opts.on("-n ITERATIONS", "iterations to expect (default: #{$loop})") { |iter| $loop = iter.to_i }
end
parser.parse(ARGV)
-$drain = $loop-1
+$drain = $loop
trap("TERM") { exit! }
trap("INT") { exit! }

0 comments on commit 858ed92

Please sign in to comment.