aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/processor.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-22 16:55:54 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-22 16:55:54 +0100
commit25b32914b72a5f709eca773f3511cc89c2e710c2 (patch)
tree4dab9e78e4c6b49220a837b38d463328c05e2983 /lib/mauve/processor.rb
parent3185e5d746abda1b7f42ecdbd74ec14359fda3bc (diff)
parentfd23821950f0562a8995735105cd31fdc6d55933 (diff)
merge
Diffstat (limited to 'lib/mauve/processor.rb')
-rw-r--r--lib/mauve/processor.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mauve/processor.rb b/lib/mauve/processor.rb
index e3aac54..f5e8fac 100644
--- a/lib/mauve/processor.rb
+++ b/lib/mauve/processor.rb
@@ -8,7 +8,7 @@ module Mauve
include Singleton
- attr_accessor :transmission_cache_expire_time, :sleep_interval
+ attr_reader :transmission_cache_expire_time
def initialize
super
@@ -24,6 +24,11 @@ module Mauve
@logger ||= Log4r::Logger.new(self.class.to_s)
end
+ def transmission_cache_expire_time=(i)
+ raise ArgumentError, "transmission_cache_expire_time must be an integer" unless i.is_a?(Integer)
+ @transmission_cache_expire_time = i
+ end
+
def main_loop
sz = Server.packet_buffer_size