Skip to content

Commit d33780d

Browse files
authored
Update timeseries.go: if num <= 0
change condition because if num=0, than inside function ts.extract() will be division by zero.
1 parent 09731f9 commit d33780d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/timeseries/timeseries.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ func (ts *timeSeries) ComputeRange(start, finish time.Time, num int) []Observabl
357357
return nil
358358
}
359359

360-
if num < 0 {
360+
if num <= 0 {
361361
log.Printf("timeseries: num < 0, %v", num)
362362
return nil
363363
}

0 commit comments

Comments
 (0)