From f9bab2fc3dcef0b452782de662ee7739a547079a Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 22 Aug 2011 15:55:13 +0100 Subject: Changed default args for DuringRunner#find_next --- lib/mauve/notification.rb | 4 ++-- 1 file 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 -- cgit v1.2.1