mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 16:15:25 +00:00
Init min to max MOS (#1734)
* Init min to max MOS Could have been contributing to low p50 score in prom stats. * don't need to reset on no tracks as default is that
This commit is contained in:
@@ -860,7 +860,7 @@ func (p *ParticipantImpl) GetAudioLevel() (level float64, active bool) {
|
||||
func (p *ParticipantImpl) GetConnectionQuality() *livekit.ConnectionQualityInfo {
|
||||
numTracks := 0
|
||||
minQuality := livekit.ConnectionQuality_EXCELLENT
|
||||
minScore := float32(0.0)
|
||||
minScore := connectionquality.MaxMOS
|
||||
numUpDrops := 0
|
||||
numDownDrops := 0
|
||||
|
||||
@@ -919,11 +919,6 @@ func (p *ParticipantImpl) GetConnectionQuality() *livekit.ConnectionQualityInfo
|
||||
availableTracks[trackID] = true
|
||||
}
|
||||
|
||||
if numTracks == 0 {
|
||||
minQuality = livekit.ConnectionQuality_EXCELLENT
|
||||
minScore = connectionquality.MaxMOS
|
||||
}
|
||||
|
||||
prometheus.RecordQuality(minQuality, minScore, numUpDrops, numDownDrops)
|
||||
|
||||
// remove unavailable tracks from track quality cache
|
||||
|
||||
Reference in New Issue
Block a user