From 6efd6007f1ee497b0910d12ec674862cc032d6a1 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 12 May 2020 19:20:03 +0200 Subject: [PATCH] Fix bitrate computation. I'm an idiot. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index 767fec2..5b48773 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -172,7 +172,7 @@ async function updateStats(conn, sender) { if(stats.timestamp) { stats.rate = - ((r.bytesSent - stats.bytesSent) - + ((r.bytesSent - stats.bytesSent) * 1000 / (r.timestamp - stats.timestamp)) * 8; } else { delete(stats.rate);