lint fix.

This commit is contained in:
Miroslav Šedivý 2021-03-18 14:13:02 +01:00
parent a9e40d8b22
commit c4486152e7

View File

@ -350,7 +350,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
this.emit('stats', { this.emit('stats', {
bitrate: (bytesDiff / tsDiff) * 1000, bitrate: (bytesDiff / tsDiff) * 1000,
packetLoss: (packetsLostDiff / (packetsLostDiff + packetsReceivedDiff)) * 100, packetLoss: (packetsLostDiff / (packetsLostDiff + packetsReceivedDiff)) * 100,
fps: Number(report.framesPerSecond || (framesDecodedDiff / (tsDiff / 1000))), fps: Number(report.framesPerSecond || framesDecodedDiff / (tsDiff / 1000)),
width: report.frameWidth || NaN, width: report.frameWidth || NaN,
height: report.frameHeight || NaN, height: report.frameHeight || NaN,
}) })