Skip to content

Commit

Permalink
fix: dates delta comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
deryrahman committed Jan 8, 2025
1 parent b6fd13a commit c44af86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mc2mc/mc2mc.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func mc2mc(envs []string) error {
for i := start; i.Before(end); i = i.AddDate(0, 0, 1) {
dates = append(dates, i.Format(time.DateTime)) // normalize date format as temporary support
}
// if window size is less than or equal to partition delta(a DAY), then uses the same date
if end.Sub(start) <= time.Hour*24 {
// if window size is less than partition delta(a DAY), then uses the same date
if end.Sub(start) < time.Hour*24 {
dates = append(dates, start.Format(time.DateTime)) // normalize date format as temporary support
}

Expand Down

0 comments on commit c44af86

Please sign in to comment.