From f483f2e385588d644b2f2a09f9642a63ab6a555d Mon Sep 17 00:00:00 2001 From: Chris Elrod Date: Tue, 2 Nov 2021 14:27:08 -0400 Subject: [PATCH] Use specified threshold instead of DEFAULT_CHUNK_THRESHOLD in pickchunksize --- src/prelude.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prelude.jl b/src/prelude.jl index 6c161537..2c91fbdd 100644 --- a/src/prelude.jl +++ b/src/prelude.jl @@ -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