lib/dasht/base.rb in dasht-0.1.0 vs lib/dasht/base.rb in dasht-0.1.1
- old
+ new
@@ -46,10 +46,10 @@
def interval(metric, &block)
Thread.new do
begin
while true
value = block.call
- set(metric, value, :last) if value
+ metrics.set(metric, value, :last, Time.now.to_i) if value
end
rescue => e
log e
raise e
end