Skip to content

Commit

Permalink
Tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Jan 7, 2025
1 parent 7d30d9c commit ed37a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ impl ApiRepo {
progressbar.update(start).await;

let chunk_size = self.api.chunk_size.unwrap_or(length);
let n_chunks = (length + chunk_size - 1) / chunk_size;
let n_chunks = length.div_ceil(chunk_size);
let mut handles = Vec::with_capacity(n_chunks);
for start in (start..length).step_by(chunk_size) {
let url = url.to_string();
Expand Down

0 comments on commit ed37a90

Please sign in to comment.