Lower down trend threshold (revert change in previous PR) and fix typos. (#3267)
* fix typo * lower CTR threshold
This commit is contained in:
@@ -173,7 +173,7 @@ func (q *qdMeasurement) ProcessPacketGroup(pg *packetGroup, groupIdx int) {
|
|||||||
|
|
||||||
q.numGroups++
|
q.numGroups++
|
||||||
if q.minGroupIdx == 0 || q.minGroupIdx > groupIdx {
|
if q.minGroupIdx == 0 || q.minGroupIdx > groupIdx {
|
||||||
groupIdx = q.minGroupIdx
|
q.minGroupIdx = groupIdx
|
||||||
}
|
}
|
||||||
q.maxGroupIdx = max(q.maxGroupIdx, groupIdx)
|
q.maxGroupIdx = max(q.maxGroupIdx, groupIdx)
|
||||||
|
|
||||||
@@ -269,7 +269,7 @@ func (l *lossMeasurement) ProcessPacketGroup(pg *packetGroup, groupIdx int) {
|
|||||||
|
|
||||||
l.numGroups++
|
l.numGroups++
|
||||||
if l.minGroupIdx == 0 || l.minGroupIdx > groupIdx {
|
if l.minGroupIdx == 0 || l.minGroupIdx > groupIdx {
|
||||||
groupIdx = l.minGroupIdx
|
l.minGroupIdx = groupIdx
|
||||||
}
|
}
|
||||||
l.maxGroupIdx = max(l.maxGroupIdx, groupIdx)
|
l.maxGroupIdx = max(l.maxGroupIdx, groupIdx)
|
||||||
|
|
||||||
@@ -345,7 +345,7 @@ var (
|
|||||||
defaultTrendDetectorConfigCongestedCTR = ccutils.TrendDetectorConfig{
|
defaultTrendDetectorConfigCongestedCTR = ccutils.TrendDetectorConfig{
|
||||||
RequiredSamples: 4,
|
RequiredSamples: 4,
|
||||||
RequiredSamplesMin: 2,
|
RequiredSamplesMin: 2,
|
||||||
DownwardTrendThreshold: -0.7,
|
DownwardTrendThreshold: -0.5,
|
||||||
DownwardTrendMaxWait: 2 * time.Second,
|
DownwardTrendMaxWait: 2 * time.Second,
|
||||||
CollapseThreshold: 500 * time.Millisecond,
|
CollapseThreshold: 500 * time.Millisecond,
|
||||||
ValidityWindow: 10 * time.Second,
|
ValidityWindow: 10 * time.Second,
|
||||||
|
|||||||
Reference in New Issue
Block a user