5354555657585960616263
long chunkSize = getChunkSize(workers, length); while (offset < length) { long to = Math.min(offset + chunkSize, length); result.add(new FileSection(f, new LongRange(offset, to))); offset = to; } } }