lib/riemann/tools.rb in riemann-tools-1.8.2 vs lib/riemann/tools.rb in riemann-tools-1.9.0
- old
+ new
@@ -61,10 +61,10 @@
if options[:tag]
# Work around a bug with beefcake which can't take frozen strings.
event[:tags] = [*event.fetch(:tags, [])] + options[:tag].map(&:dup)
end
- event[:ttl] ||= (options[:ttl] || (options[:interval] * 2))
+ event[:ttl] ||= options[:ttl] || (options[:interval] * 2)
event[:host] = options[:event_host].dup if options[:event_host]
event = event.merge(attributes)