gorhill / cronexpr

Cron expression parser in Go language (golang)
683 stars 168 forks source link

fix infinite loop on err interval #22

Closed aiquestion closed 7 years ago

aiquestion commented 7 years ago

this p-r is to fix: https://github.com/gorhill/cronexpr/issues/16

please help to review~ thx

gorhill commented 7 years ago

Thanks for the fix. This was one the fix I was considering out of two, the other one probably leading to over-complicated code (use modulo value then add integer division value to next field, etc.)