Merge branch 'master' of mojotrollz.eu:college

This commit is contained in:
Ulf Gebhardt 2013-02-10 19:01:00 +01:00
commit 2e55467ba1

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;