Skip to content

Commit

Permalink
Don't always nudge the minute
Browse files Browse the repository at this point in the history
  • Loading branch information
sodapopcan committed Jul 6, 2017
1 parent 5ff2cd5 commit 2117b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cron_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def next(now = @time_source.now, num = 1)
t.min = -1
end

# always nudge the minute
nudge_minute(t)
# always nudge the minute unless...
nudge_minute(t) unless time_specs[:minute][0].include?(t.min)
t = t.to_time
if num > 1
recursive_calculate(:next,t,num)
Expand Down

0 comments on commit 2117b04

Please sign in to comment.