Skip to content

Commit

Permalink
Use specified threshold instead of DEFAULT_CHUNK_THRESHOLD in pickchu…
Browse files Browse the repository at this point in the history
…nksize (#552)
  • Loading branch information
chriselrod authored Nov 4, 2021
1 parent 9ec5e6b commit 4ac0e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prelude.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function pickchunksize(input_length, threshold = DEFAULT_CHUNK_THRESHOLD)
if input_length <= threshold
return input_length
else
nchunks = round(Int, input_length / DEFAULT_CHUNK_THRESHOLD, RoundUp)
nchunks = round(Int, input_length / threshold, RoundUp)
return round(Int, input_length / nchunks, RoundUp)
end
end
Expand Down

0 comments on commit 4ac0e94

Please sign in to comment.