aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-17 10:26:34 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-17 10:26:34 +0100
commit79dcf16ec6d229d6c31e055ed8e6a98327526a3a (patch)
treebf7fd3c5e8de1d0bf3c519d421472a656570a2b7 /lib/mauve/notification.rb
parentf1608b8098d0302f7e5c0e7989c78fa310d7d424 (diff)
Changed DateTime to Time everywhere. Much better.
Diffstat (limited to 'lib/mauve/notification.rb')
-rw-r--r--lib/mauve/notification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index 71dd69c..dea07a3 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -100,7 +100,7 @@ module Mauve
@alert &&
@alert.raised? &&
!@alert.acknowledged? &&
- (@test_time - @alert.raised_at.to_time) > seconds
+ (@test_time - @alert.raised_at) >= seconds
end
def x_in_list_of_y(x,y)