aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-22 15:55:13 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-22 15:55:13 +0100
commitf9bab2fc3dcef0b452782de662ee7739a547079a (patch)
tree82cf4108a5972e6e505b58658f8db71e30a62221 /lib
parentda9ef07cfa2dfd26d1e8efdce5598a7ac7806271 (diff)
Changed default args for DuringRunner#find_next
Diffstat (limited to 'lib')
-rw-r--r--lib/mauve/notification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/notification.rb b/lib/mauve/notification.rb
index 43de1a7..2007b90 100644
--- a/lib/mauve/notification.rb
+++ b/lib/mauve/notification.rb
@@ -44,7 +44,7 @@ module Mauve
res = instance_eval(&@during)
end
- def find_next(after = 5.minutes)
+ def find_next(after = 0)
t = @time+after
#
# If the condition is true after x seconds, return the time in x seconds.
@@ -193,7 +193,7 @@ module Mauve
if DuringRunner.new(Time.now, alert, &during).now?
return DuringRunner.new(Time.now, alert, &during).find_next(every)
else
- return DuringRunner.new(Time.now, alert, &during).find_next(0)
+ return DuringRunner.new(Time.now, alert, &during).find_next()
end
end