Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
32e04b4
)
THRIFT-375. rb: syntax error in benchmark.rb
author
Bryan Duxbury
<bryanduxbury@apache.org>
Fri, 20 Mar 2009 16:54:33 +0000
(16:54 +0000)
committer
Bryan Duxbury
<bryanduxbury@apache.org>
Fri, 20 Mar 2009 16:54:33 +0000
(16:54 +0000)
Fixed the syntax error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756617
13f79535
-47bb-0310-9956-
ffa450edef68
lib/rb/benchmark/benchmark.rb
patch
|
blob
|
history
diff --git
a/lib/rb/benchmark/benchmark.rb
b/lib/rb/benchmark/benchmark.rb
index
1c1bcac
..
b99003e
100644
(file)
--- a/
lib/rb/benchmark/benchmark.rb
+++ b/
lib/rb/benchmark/benchmark.rb
@@
-214,7
+214,7
@@
class BenchmarkManager
}
def tabulate(fmt, *labels_and_values)
- labels = labels_and_values.map { |
(l,)
| Array === l ? l.first : l }
+ labels = labels_and_values.map { |
l
| Array === l ? l.first : l }
label_width = labels.inject(0) { |w,l| l.size > w ? l.size : w }
labels_and_values.each do |(l,v)|
f = fmt