Fix bitrate computation.
I'm an idiot.
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user