x/net: net/internal/timeseries/timeseries.go - Division by zero #57466
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What do you expect to see
https://github.com/golang/net/blob/2aa82152a53e7aa6b28c6390d9369ee5a5b63584/internal/timeseries/timeseries.go#L360
if num <=0
What did you see instead?
When
ComputeRange(start, finish time.Time, num int)
functionhttps://github.com/golang/net/blob/2aa82152a53e7aa6b28c6390d9369ee5a5b63584/internal/timeseries/timeseries.go#L354
is called with num=0 you'll get Division by zero at
https://github.com/golang/net/blob/2aa82152a53e7aa6b28c6390d9369ee5a5b63584/internal/timeseries/timeseries.go#L398
The text was updated successfully, but these errors were encountered: