up2k: more runahead

This commit is contained in:
ed 2021-04-19 21:58:30 +02:00
parent 28cbdb652e
commit 779437db67

View file

@ -740,7 +740,7 @@ function up2k_init(have_crypto) {
function hashing_permitted() {
if (multitask) {
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;
}
return handshakes_permitted() && 0 ==