diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-18 18:11:10 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-18 18:11:10 +0100 |
commit | 6aba0c3d8e2d30797755dc8b968fe338e13b8df4 (patch) | |
tree | a9c3a469146a47fe88e3a56c8bf40c0ed9b66288 /lib/mauve/person.rb | |
parent | c30daf56d4aab9e41a993d82406cba947c8efe32 (diff) |
* Fixed up Alert to postpone raises/clears within initial sleep period for old alerts
* Fixed up AlertChanged to do the same
* Added a migration method for the new AlertHistories table
* added singleton cleanup for tests
* moar tests
* cleaned up Alert a bit
Diffstat (limited to 'lib/mauve/person.rb')
-rw-r--r-- | lib/mauve/person.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/mauve/person.rb b/lib/mauve/person.rb index 3831529..64ed07e 100644 --- a/lib/mauve/person.rb +++ b/lib/mauve/person.rb @@ -163,12 +163,6 @@ module Mauve else logger.info "Starting to send notifications again for #{username}." if was_suppressed - - end - - if Server.instance.started_at > alert.updated_at and (Server.instance.started_at + Server.instance.initial_sleep) > Time.now - logger.info("Alert last updated in prior run of mauve -- ignoring for initial sleep period.") - return true end # |