Declare congestion none only if both methods are in DQR. (#3372)

* Declare congestion none only if both emthods are in DQR.

* do not change congestion reason unless queuing region changes
This commit is contained in:
Raja Subramanian
2025-01-28 14:10:23 +05:30
committed by GitHub
parent c30204d56c
commit 59be7c601b
2 changed files with 17 additions and 12 deletions
+2 -2
View File
@@ -95,8 +95,8 @@ func (ts *trafficStats) AcknowledgedBitrate() int64 {
return 0
}
ackedBitrate := int64(ts.ackedBytes) * 8 * 1e6 / ts.Duration()
return int64(float64(ackedBitrate) * ts.CapturedTrafficRatio())
ackedBitrate := float64(ts.ackedBytes) * 8 * 1e6 / float64(ts.Duration())
return int64(ackedBitrate * ts.CapturedTrafficRatio())
}
func (ts *trafficStats) CapturedTrafficRatio() float64 {