Skip to content

Commit c569349

Browse files
committed
fix framesPerSecond metric
1 parent 96bbc09 commit c569349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/peer-connection-stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async function getPeerConnectionStats(
437437
values.inboundRtp.framesPerSecond = calculateRate(
438438
frames,
439439
now - prevStats.t,
440-
values.inboundRtp.framesReceived !== 0 ? 0 : undefined,
440+
values.inboundRtp.frameWidth > 0 ? 0 : undefined,
441441
)
442442
}
443443
// Update packet loss rate.

0 commit comments

Comments
 (0)