Staticcheck (#464)
Using `go get -u honnef.co/go/tools/cmd/staticcheck` Uneaarthed a couple of real bugs
This commit is contained in:
@@ -120,7 +120,7 @@ func (cs *ConnectionStats) updateScore() float32 {
|
||||
maxRTT := uint32(0)
|
||||
maxJitter := uint32(0)
|
||||
for _, qw := range cs.qualityWindows {
|
||||
expectedPacketsInInterval += qw.endSeqNum - qw.endSeqNum + 1
|
||||
expectedPacketsInInterval += qw.endSeqNum - qw.startSeqNum + 1
|
||||
lostPacketsInInterval += qw.endPacketsLost - qw.startPacketsLost
|
||||
if qw.maxRTT > maxRTT {
|
||||
maxRTT = qw.maxRTT
|
||||
|
||||
Reference in New Issue
Block a user