mirror of
https://github.com/livekit/livekit.git
synced 2026-11-23 02:29:22 +00:00
DownTrack.GetPrimaryStreamLastReceiverReportTime returned time.Unix(0, LastReceiverReportTime()), but that is a mono timestamp, not a real wall time. Connection quality compares it with time.Now() and with the streaming start, which is a wall time. After the wall clock steps, for example on an NTP correction, a receiver report looks older or newer than it is by the step, so the scorer can mark a down track POOR after one update without a report, or miss reports that stopped. Convert the mono timestamp to wall time, and return zero time before the first receiver report, as #5006 does for the last sender report time.