diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-10 16:09:08 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-08-10 16:09:08 +0100 |
commit | f1608b8098d0302f7e5c0e7989c78fa310d7d424 (patch) | |
tree | f4e1a9a9a5f6c0873bc568c96a21fbade7170104 /lib/mauve/source_list.rb | |
parent | a54a32084e9870af6f1ede97887c2332c21e812c (diff) |
Removed MauveTime. Added more tests.
Diffstat (limited to 'lib/mauve/source_list.rb')
-rw-r--r-- | lib/mauve/source_list.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/source_list.rb b/lib/mauve/source_list.rb index c905786..caa9f9a 100644 --- a/lib/mauve/source_list.rb +++ b/lib/mauve/source_list.rb @@ -90,7 +90,7 @@ module Mauve # # Redo resolution every thirty minutes # - resolve if @resolved_list.empty? or @last_resolved_at.nil? or (MauveTime.now - 1800) > @last_resolved_at + resolve if @resolved_list.empty? or @last_resolved_at.nil? or (Time.now - 1800) > @last_resolved_at # # Pick out hostnames from URIs. @@ -136,7 +136,7 @@ module Mauve end def resolve - @last_resolved_at = MauveTime.now + @last_resolved_at = Time.now new_list = @list.collect do |host| if host.is_a?(String) |