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) { ...@@ -172,7 +172,7 @@ async function updateStats(conn, sender) {
if(stats.timestamp) { if(stats.timestamp) {
stats.rate = stats.rate =
((r.bytesSent - stats.bytesSent) - ((r.bytesSent - stats.bytesSent) * 1000 /
(r.timestamp - stats.timestamp)) * 8; (r.timestamp - stats.timestamp)) * 8;
} else { } else {
delete(stats.rate); 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