1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Fix bitrate computation.

I'm an idiot.
This commit is contained in:
Juliusz Chroboczek 2020-05-12 19:20:03 +02:00
parent 7393ca8473
commit 6efd6007f1

View file

@ -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);