Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make a small bit of code a little more idomatic.

  • Loading branch information...
commit 2fe5e93bcbe6b2b69332dcfd1404be7705f0745a 1 parent 73abbc2
@nex3 nex3 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/benchwarmer.rb
View
2  lib/benchwarmer.rb
@@ -67,7 +67,7 @@ def run(&blk)
procs.each_with_index do |(column, proc), i|
head = @columns[column]
bench = Benchmark.measure { @times.times(&proc)}
- print (" %#{head.size >= 5 ? head.size : 5}.2f |" % bench.real)
+ print (" %#{[head.size, 5].max}.2f |" % bench.real)
end
puts
end
Please sign in to comment.
Something went wrong with that request. Please try again.