lib/fozzie/classes.rb in fozzie-0.0.10 vs lib/fozzie/classes.rb in fozzie-0.0.11
- old
+ new
@@ -11,9 +11,10 @@
super host, port
end
def time_to_do(stat, sample_rate=1, &block); time_for(stat, sample_rate, &block); end
def time_for(stat, sample_rate=1, &block)
+ stat = stat.flatten.join('.') if stat.kind_of?(Array)
time(stat, sample_rate, &block)
end
def committed; commit; end
def commit
\ No newline at end of file