Permalink
Browse files

TTLs are scaled to 2x interval by default.

  • Loading branch information...
1 parent d256edb commit 78bdff720452771152560c82598c5bbd6370c4cb Kyle Kingsbury committed Oct 18, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/riemann/tools.rb
View
@@ -60,9 +60,7 @@ def report(event)
event[:tags] = options[:tag].map(&:dup)
end
- if options[:ttl]
- event[:ttl] = options[:ttl]
- end
+ event[:ttl] ||= (options[:ttl] || (options[:interval] * 2))
if options[:event_host]
event[:host] = options[:event_host].dup

0 comments on commit 78bdff7

Please sign in to comment.