summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/filetransfer/util/FileChunk.java
diff options
context:
space:
mode:
authorSimon Rettberg2016-08-10 19:03:23 +0200
committerSimon Rettberg2016-08-10 19:03:23 +0200
commita65d3f2581a2cf3b9b05c243a5d40ca31bd7aaa0 (patch)
tree93c4287552409821300ca6bb1ba88c8ee84baa2d /src/main/java/org/openslx/filetransfer/util/FileChunk.java
parentRemove debug spam in json helper (diff)
downloadmaster-sync-shared-a65d3f2581a2cf3b9b05c243a5d40ca31bd7aaa0.tar.gz
master-sync-shared-a65d3f2581a2cf3b9b05c243a5d40ca31bd7aaa0.tar.xz
master-sync-shared-a65d3f2581a2cf3b9b05c243a5d40ca31bd7aaa0.zip
Fix: Some chunks could be dropped from the hash queue and not marked as to-be-hashed again
Diffstat (limited to 'src/main/java/org/openslx/filetransfer/util/FileChunk.java')
-rw-r--r--src/main/java/org/openslx/filetransfer/util/FileChunk.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/filetransfer/util/FileChunk.java b/src/main/java/org/openslx/filetransfer/util/FileChunk.java
index 0aff296..e00b011 100644
--- a/src/main/java/org/openslx/filetransfer/util/FileChunk.java
+++ b/src/main/java/org/openslx/filetransfer/util/FileChunk.java
@@ -7,7 +7,7 @@ import org.openslx.filetransfer.FileRange;
public class FileChunk
{
-
+
/**
* Length in bytes of binary sha1 representation
*/
@@ -60,7 +60,7 @@ public class FileChunk
@Override
public String toString()
{
- return "[Chunk " + getChunkIndex() + " (" + range.startOffset + "-" + range.endOffset + "), fails: " + failCount + "]";
+ return "[Chunk " + getChunkIndex() + " (" + status + "), fails: " + failCount + "]";
}
public synchronized byte[] getSha1Sum()