Skip to content

Commit

Permalink
TTLs are scaled to 2x interval by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Kingsbury committed Oct 18, 2013
1 parent d256edb commit 78bdff7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/riemann/tools.rb
Expand Up @@ -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
Expand Down

0 comments on commit 78bdff7

Please sign in to comment.