Skip to content

Commit

Permalink
fix(dashboard): convert crontab to scheduleDates, every-day incr back…
Browse files Browse the repository at this point in the history
…up to empty array
  • Loading branch information
powerfooI committed Feb 22, 2024
1 parent 133f9d4 commit 5d4a11d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ func getScheduleDatesFromPolicy(p *v1alpha1.OBTenantBackupPolicy) param.Schedule
var i, j int
for i < len(fullDays) && j < len(incrementalDays) {
fullDay, _ := strconv.Atoi(fullDays[i])
if incrementalDays[j] == "*" {
j = len(incrementalDays)
break
}
incrementalDay, _ := strconv.Atoi(incrementalDays[j])
// It should not happen, but just in case
if fullDay == incrementalDay {
Expand Down

0 comments on commit 5d4a11d

Please sign in to comment.