Skip to content

Commit befb323

Browse files
committed
more rigorous quality scoring
1 parent 5dc650b commit befb323

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pulsebeam/src/rtp/monitor.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,25 +467,23 @@ impl RawMetrics {
467467
pub fn quality_hysteresis(&self, score: f64, current: StreamQuality) -> StreamQuality {
468468
match current {
469469
StreamQuality::Excellent => {
470-
// Must drop below 75 to go down to Good
471-
if score < 75.0 {
470+
if score < 80.0 {
472471
StreamQuality::Good
473472
} else {
474473
StreamQuality::Excellent
475474
}
476475
}
477476
StreamQuality::Good => {
478-
if score >= 85.0 {
477+
if score >= 90.0 {
479478
StreamQuality::Excellent
480-
} else if score < 55.0 {
479+
} else if score < 60.0 {
481480
StreamQuality::Bad
482481
} else {
483482
StreamQuality::Good
484483
}
485484
}
486485
StreamQuality::Bad => {
487-
// Must rise above 65 to go up to Good
488-
if score >= 65.0 {
486+
if score >= 75.0 {
489487
StreamQuality::Good
490488
} else {
491489
StreamQuality::Bad

0 commit comments

Comments
 (0)