summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2018-05-09 17:38:01 +0200
committerSimon Rettberg2018-05-09 17:38:01 +0200
commitd684f55c3b3041901ee4d9d12e870d39efb619bc (patch)
tree2b4bd18186c99de80f09f1b5627bfab56171fb5d /dozentenmodul/src/main
parent[client] Show server side progress and estimated virtual speed (diff)
downloadtutor-module-d684f55c3b3041901ee4d9d12e870d39efb619bc.tar.gz
tutor-module-d684f55c3b3041901ee4d9d12e870d39efb619bc.tar.xz
tutor-module-d684f55c3b3041901ee4d9d12e870d39efb619bc.zip
[client] Fix inverted logic for slowed down hashing
Diffstat (limited to 'dozentenmodul/src/main')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java
index 028f8788..23846860 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/filetransfer/AsyncHashGenerator.java
@@ -88,7 +88,7 @@ public class AsyncHashGenerator extends Thread {
try {
checker.put(block);
// Don't hash too furiously in the background if the upload didn't start yet
- if (uploadToken != null && chunk.range.startOffset > FileChunk.CHUNK_SIZE * 2) {
+ if (uploadToken == null && chunk.range.startOffset > FileChunk.CHUNK_SIZE * 4) {
Util.sleep(200);
}
} catch (InterruptedException e) {