fix publisher frame count reporting for simulcast streams (#4457)

This commit is contained in:
Paul Wells
2026-04-16 11:08:33 -07:00
committed by GitHub
parent 1d804737f9
commit 2a04bc3ca8

View File

@@ -348,7 +348,9 @@ func CondenseStat(stat *livekit.AnalyticsStat) (ps CondensedStat, ok bool) {
ps.Bytes += stream.PrimaryBytes
ps.Packets += stream.PrimaryPackets
ps.PacketsLost += stream.PacketsLost
ps.Frames += stream.Frames
if stream.Frames > ps.Frames {
ps.Frames = stream.Frames
}
}
return