lib/fugit/cron.rb in fugit-1.4.4 vs lib/fugit/cron.rb in fugit-1.4.5
- old
+ new
@@ -148,10 +148,10 @@
end
end
def weekday_modulo_match?(nt, mod)
- nt.rweek % mod[0] == mod[1]
+ (nt.rweek + mod[1]) % mod[0] == 0
end
def weekday_match?(nt)
return true if @weekdays.nil?