lib/riemann/babbler/plugins/net.rb in riemann-babbler-0.1.4 vs lib/riemann/babbler/plugins/net.rb in riemann-babbler-0.1.5
- old
+ new
@@ -39,10 +39,10 @@
).each do |service, value|
status.merge!({service => value})
end
end
end
- status.each_key { |key| @diff[key] = status[key] - @old_status[key] } if @old_status
+ status.each_key { |key| @diff[key] = status[key] - @old_status[key] } unless @old_status.empty?
@old_status = status
@diff
end
def tick