Skip to content

Commit

Permalink
fix: cumulative values for packets lost and sent
Browse files Browse the repository at this point in the history
  • Loading branch information
eswarclynn committed Mar 27, 2024
1 parent 2349e74 commit 8e77591
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 8e77591

Please sign in to comment.