From db72ba254fcb85aedb1c331b60adb3e5b00713b1 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 2 Jul 2012 11:03:05 +0100 Subject: Clear cleared_at time if raised_at time is set on alert reception. --- lib/mauve/alert.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index d3bcf7a..4e0ec67 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -826,6 +826,10 @@ module Mauve # alert_db.raised_at = raise_time if alert_db.raised_at.nil? alert_db.will_raise_at = nil + # + # Make sure the cleared at time is unset if we're raising this alert. + # + alert_db.cleared_at = nil else alert_db.raised_at = nil alert_db.will_raise_at = raise_time -- cgit v1.2.1