Skip to content

Commit 4ac0e94

Browse files
authored
Use specified threshold instead of DEFAULT_CHUNK_THRESHOLD in pickchunksize (#552)
1 parent 9ec5e6b commit 4ac0e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prelude.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function pickchunksize(input_length, threshold = DEFAULT_CHUNK_THRESHOLD)
3333
if input_length <= threshold
3434
return input_length
3535
else
36-
nchunks = round(Int, input_length / DEFAULT_CHUNK_THRESHOLD, RoundUp)
36+
nchunks = round(Int, input_length / threshold, RoundUp)
3737
return round(Int, input_length / nchunks, RoundUp)
3838
end
3939
end

0 commit comments

Comments
 (0)