From 86628de6e9ed5ac99d912a722e14ae7d0a3ec827 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Thu, 19 Dec 2024 00:03:56 +0530 Subject: [PATCH] Lower down trend threshold (revert change in previous PR) and fix typos. (#3267) * fix typo * lower CTR threshold --- pkg/sfu/bwe/sendsidebwe/congestion_detector.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,