Commit 6efd6007 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix bitrate computation.

I'm an idiot.
parent 7393ca84
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment