Skip to content

Commit

Permalink
fix framesPerSecond metric
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed May 8, 2024
1 parent 8873590 commit 96bbc09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/peer-connection-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ async function getPeerConnectionStats(
values.inboundRtp.framesPerSecond = calculateRate(
frames,
now - prevStats.t,
values.inboundRtp.framesReceived !== 0 ? 0 : undefined,
)
}
// Update packet loss rate.
Expand Down

0 comments on commit 96bbc09

Please sign in to comment.