Skip to content

Commit

Permalink
split: sync parallel_split chunk_size calc with sequential_split
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Feb 4, 2024
1 parent 5654550 commit af671ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl Args {
let args = self.clone();
let chunk_size;
let nchunks = if let Some(flag_chunks) = args.flag_chunks {
chunk_size = idx.count() as usize / flag_chunks;
chunk_size = (idx.count() as f64 / flag_chunks as f64).ceil() as usize;
flag_chunks
} else {
chunk_size = args.flag_size;
Expand Down

0 comments on commit af671ff

Please sign in to comment.