diff --git a/packages/hms-video-store/src/analytics/stats/PublishStatsAnalytics.ts b/packages/hms-video-store/src/analytics/stats/PublishStatsAnalytics.ts index 8f6df60b07..5d0cb0adf2 100644 --- a/packages/hms-video-store/src/analytics/stats/PublishStatsAnalytics.ts +++ b/packages/hms-video-store/src/analytics/stats/PublishStatsAnalytics.ts @@ -133,8 +133,8 @@ class RunningLocalTrackAnalytics extends RunningTrackAnalytics { avg_available_outgoing_bitrate_bps: this.calculateAverage('availableOutgoingBitrate'), avg_bitrate_bps: this.calculateAverage('bitrate'), avg_fps: this.calculateAverage('framesPerSecond'), - total_packets_lost: this.calculateDifferenceForSample('packetsLost'), - total_packets_sent: this.calculateDifferenceForSample('packetsSent'), + total_packets_lost: this.getLatestStat().packetsLost, + total_packets_sent: this.getLatestStat().packetsSent, total_packet_sent_delay_sec: parseFloat(this.calculateDifferenceForSample('totalPacketSendDelay').toFixed(4)), total_fir_count: this.calculateDifferenceForSample('firCount'), total_pli_count: this.calculateDifferenceForSample('pliCount'),