lib/rufus/scheduler/cronline.rb in rufus-scheduler-3.1.8 vs lib/rufus/scheduler/cronline.rb in rufus-scheduler-3.1.9
- old
+ new
@@ -284,9 +284,11 @@
def prev_second(time)
secs = toa(@seconds)
+ return time.sec + 60 - secs.last if time.sec < secs.first
+
secs.pop while time.sec < secs.last
time.sec - secs.last
end