Skip to content

Commit

Permalink
fix: calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Mar 31, 2024
1 parent 1748356 commit 7059bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkd/gasstation/gsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func createCodeTimeSliceBuckets(postCodePostCodeLocationMap map[int]pcmodel.Post
timeSlices := make([]time.Time, 0)
//15 min buckets
timeSliceBuckets := make(map[time.Time][]gsmodel.GasPrice)
for myTimeSlice := yesterday; myTimeSlice.Before(time.Now()); myTimeSlice = myTimeSlice.Add(time.Minute * 15) {
for myTimeSlice := yesterday; myTimeSlice.Before(time.Now()); myTimeSlice = myTimeSlice.Add(time.Minute * 15).Round(time.Minute) {
timeSlices = append(timeSlices, myTimeSlice)
timeSliceBuckets[myTimeSlice] = make([]gsmodel.GasPrice, 0)
}
Expand Down

0 comments on commit 7059bca

Please sign in to comment.