lib/tailstrom/command/stat.rb in tailstrom-0.0.9 vs lib/tailstrom/command/stat.rb in tailstrom-0.0.10
- old
+ new
@@ -88,11 +88,11 @@
counters = @counters.to_a
if sort = @options[:sort]
counters = counters.sort_by do |key, c|
sum, avg, min, max, count =
c.sum, c.avg, c.min, c.max, c.count
- binding.eval sort
+ eval sort
end
else
counters = counters.sort_by do |key, c|
c.sum
end
@@ -102,10 +102,10 @@
def out_filter(key, counter)
if filter = @options[:out_filter]
sum, avg, min, max, count =
counter.sum, counter.avg, counter.min, counter.max, counter.count
- binding.eval filter
+ eval filter
else
true
end
end
end