private int convertSizeToChunk(long size) { int cl = this.peer.ChunkLength * 1024; if (cl == 0) return 0; return (int)(size / cl); }