aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-07-02 11:03:05 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-07-02 11:03:05 +0100
commitdb72ba254fcb85aedb1c331b60adb3e5b00713b1 (patch)
tree6fa003e1ff74d94b5d1e8b55aacda64ce22cedfd
parent239df6e29e6010da4f078697e8f42753624ae0fe (diff)
Clear cleared_at time if raised_at time is set on alert reception.
-rw-r--r--lib/mauve/alert.rb4
1 files changed, 4 insertions, 0 deletions
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