diff --git a/pkg/sfu/bwe/sendsidebwe/congestion_detector.go b/pkg/sfu/bwe/sendsidebwe/congestion_detector.go index d302bb29..36c00b86 100644 --- a/pkg/sfu/bwe/sendsidebwe/congestion_detector.go +++ b/pkg/sfu/bwe/sendsidebwe/congestion_detector.go @@ -173,7 +173,7 @@ func (q *qdMeasurement) ProcessPacketGroup(pg *packetGroup, groupIdx int) { q.numGroups++ if q.minGroupIdx == 0 || q.minGroupIdx > groupIdx { - groupIdx = q.minGroupIdx + q.minGroupIdx = groupIdx } q.maxGroupIdx = max(q.maxGroupIdx, groupIdx) @@ -269,7 +269,7 @@ func (l *lossMeasurement) ProcessPacketGroup(pg *packetGroup, groupIdx int) { l.numGroups++ if l.minGroupIdx == 0 || l.minGroupIdx > groupIdx { - groupIdx = l.minGroupIdx + l.minGroupIdx = groupIdx } l.maxGroupIdx = max(l.maxGroupIdx, groupIdx) @@ -345,7 +345,7 @@ var ( defaultTrendDetectorConfigCongestedCTR = ccutils.TrendDetectorConfig{ RequiredSamples: 4, RequiredSamplesMin: 2, - DownwardTrendThreshold: -0.7, + DownwardTrendThreshold: -0.5, DownwardTrendMaxWait: 2 * time.Second, CollapseThreshold: 500 * time.Millisecond, ValidityWindow: 10 * time.Second,