Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Fixed chunk size calculation #21

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PyXRootDFile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ namespace PyXRootD
{
static const char *kwlist[] = { "offset", "chunksize", NULL };
uint64_t offset = 0;
uint32_t chunksize = 1042 * 1024 * 2; // 2MB
uint32_t chunksize = 1024 * 1024 * 2; // 2MB
ChunkIterator *iterator;

if ( !self->file->IsOpen() ) return FileClosedError();
Expand Down