Optimizer: fix result timestamps
This commit is contained in:
parent
b0ee4440d1
commit
d2a88138d1
1 changed files with 1 additions and 1 deletions
|
|
@ -618,7 +618,7 @@ func asTimestamps(dt []int) []time.Time {
|
|||
res := make([]time.Time, 0, len(dt))
|
||||
eoh := endOfHour(time.Now())
|
||||
res = append(res, eoh.Add(-time.Duration(dt[0])*time.Second))
|
||||
for i := range len(res) - 1 {
|
||||
for i := range len(dt) - 1 {
|
||||
res = append(res, eoh.Add(time.Duration(dt[i+1])*time.Second))
|
||||
}
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue