Add start/end time to AnalyticsStream. (#2618)

* Add start/end time to AnalyticsStream.

* fix test
This commit is contained in:
Raja Subramanian
2024-04-03 12:23:18 +05:30
committed by GitHub
parent 1caa6ff6d0
commit 63b1fba082
9 changed files with 72 additions and 55 deletions
+1 -1
View File
@@ -776,7 +776,7 @@ func (r *RTPStatsSender) DeltaInfoSender(senderSnapshotID uint32) *RTPDeltaInfo
return &RTPDeltaInfo{
StartTime: startTime,
Duration: endTime.Sub(startTime),
EndTime: endTime,
Packets: packetsExpected - uint32(now.packetsPadding-then.packetsPadding),
Bytes: now.bytes - then.bytes,
HeaderBytes: now.headerBytes - then.headerBytes,