We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75784e1 commit 22680a1Copy full SHA for 22680a1
net/sockstats/sockstats_tsgo.go
@@ -332,6 +332,9 @@ func (rm *radioMonitor) radioHighPercent() int64 {
332
now := rm.now().Unix()
333
var periodLength int64 = radioSampleSize
334
if t := now - rm.startTime; t < periodLength {
335
+ if t <= 0 {
336
+ return 0
337
+ }
338
periodLength = t
339
}
340
periodStart := now - periodLength // start of current reporting period
0 commit comments