mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 17:32:20 -06:00
up2k: more runahead
This commit is contained in:
parent
28cbdb652e
commit
779437db67
|
@ -740,7 +740,7 @@ function up2k_init(have_crypto) {
|
||||||
function hashing_permitted() {
|
function hashing_permitted() {
|
||||||
if (multitask) {
|
if (multitask) {
|
||||||
var ahead = st.bytes.hashed - st.bytes.uploaded;
|
var ahead = st.bytes.hashed - st.bytes.uploaded;
|
||||||
return ahead < 1024 * 1024 * 128 &&
|
return ahead < 1024 * 1024 * 1024 * 4 &&
|
||||||
st.todo.handshake.length + st.busy.handshake.length < 16;
|
st.todo.handshake.length + st.busy.handshake.length < 16;
|
||||||
}
|
}
|
||||||
return handshakes_permitted() && 0 ==
|
return handshakes_permitted() && 0 ==
|
||||||
|
|
Loading…
Reference in a new issue