mirror of
https://github.com/jech/galene.git
synced 2024-11-14 04:35:57 +01:00
Fix bitrate computation.
I'm an idiot.
This commit is contained in:
parent
7393ca8473
commit
6efd6007f1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue