From cbd386beb875fc2d19ad70d75236f88b78d5b04f Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 21 Nov 2022 05:39:54 +0300 Subject: web: fixed negative webrtc fps --- web/share/js/kvm/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share') diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 05f916a6..f3d9c555 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -280,7 +280,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { frames = el.mozPaintedFrames; } if (frames !== null) { - info = `${frames - __frames} fps dynamic`; + info = `${Math.max(0, frames - __frames)} fps dynamic`; __frames = frames; } else { info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); -- cgit v1.2.3