mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
revert to fixed MiB/s in upload tab
This commit is contained in:
parent
3f4eae6bce
commit
a4d7329ab7
|
@ -1509,11 +1509,11 @@ function up2k_init(subtle) {
|
|||
if (done) {
|
||||
t.done = true;
|
||||
st.bytes.finished += t.size - t.bytes_uploaded;
|
||||
var spd1 = t.size / ((t.t_hashed - t.t_hashing) / 1000.),
|
||||
spd2 = t.size / ((t.t_uploaded - t.t_uploading) / 1000.);
|
||||
var spd1 = (t.size / ((t.t_hashed - t.t_hashing) / 1000.)) / (1024 * 1024.),
|
||||
spd2 = (t.size / ((t.t_uploaded - t.t_uploading) / 1000.)) / (1024 * 1024.);
|
||||
|
||||
pvis.seth(t.n, 2, 'hash {0}/s, up {1}/s'.format(
|
||||
humansize(spd1), isNaN(spd2) ? '--' : humansize(spd2)));
|
||||
pvis.seth(t.n, 2, 'hash {0}, up {1} MB/s'.format(
|
||||
f2f(spd1, 2), isNaN(spd2) ? '--' : f2f(spd2, 2)));
|
||||
|
||||
pvis.move(t.n, 'ok');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue