mirror of
https://github.com/livekit/livekit.git
synced 2026-04-26 15:17:35 +00:00
Fix off by one packets expected (#529)
This commit is contained in:
@@ -682,7 +682,7 @@ func (r *RTPStats) ToProto() *livekit.RTPStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
packetsExpected := r.getExtHighestSN() - r.extStartSN
|
||||
packetsExpected := r.getExtHighestSN() - r.extStartSN + 1
|
||||
|
||||
packets := packetsExpected
|
||||
if r.packetsLost < packets {
|
||||
|
||||
Reference in New Issue
Block a user