diff --git a/pkg/telemetry/statsworker.go b/pkg/telemetry/statsworker.go index 37dbc3aeb..f963097ee 100644 --- a/pkg/telemetry/statsworker.go +++ b/pkg/telemetry/statsworker.go @@ -159,7 +159,9 @@ func coalesce(stats []*livekit.AnalyticsStat) *livekit.AnalyticsStat { // only consider non-zero scores if stat.Score > 0 { - if stat.Score < minScore { + if minScore == 0 { + minScore = stat.Score + } else if stat.Score < minScore { minScore = stat.Score } scoreSum += stat.Score