updated chunk size

This commit is contained in:
Michael Scholz 2013-02-10 18:41:31 +01:00
parent 0dde90d005
commit efe8bf02d5

View File

@ -438,9 +438,9 @@ public class Node {
private void sendFile(NodeIdentifier nodeID, File file) {
// calculate chunk size
int CHUNK_SIZE = BUFFER_SIZE - 15;
// calculate chunk size = BUFFER - ID_BITS - fileID - eofChar
int CHUNK_SIZE = BUFFER_SIZE - ID_BITS - 10 - 1;
int FILE_SIZE = (int) file.length();
boolean eof = false;