From fdba70dab74a1dec448c88aad65ac679a55ded9a Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Tue, 29 Aug 2023 21:13:07 +0530 Subject: [PATCH] Use correct variables (#2010) --- pkg/sfu/buffer/rtpstats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sfu/buffer/rtpstats.go b/pkg/sfu/buffer/rtpstats.go index 2fdcbb4c5..3dd477481 100644 --- a/pkg/sfu/buffer/rtpstats.go +++ b/pkg/sfu/buffer/rtpstats.go @@ -1591,8 +1591,8 @@ func (r *RTPStats) getDrift() (packetDrift *livekit.RTPDrift, reportDrift *livek StartTime: timestamppb.New(r.srFirst.NTPTimestamp.Time()), EndTime: timestamppb.New(r.srNewest.NTPTimestamp.Time()), Duration: elapsed.Seconds(), - StartTimestamp: r.timestamp.GetExtendedStart(), - EndTimestamp: r.timestamp.GetExtendedHighest(), + StartTimestamp: r.srFirst.RTPTimestampExt, + EndTimestamp: r.srNewest.RTPTimestampExt, RtpClockTicks: rtpClockTicks, DriftSamples: driftSamples, DriftMs: (float64(driftSamples) * 1000) / float64(r.params.ClockRate),