Skip to content

Commit

Permalink
Merge pull request #68 from sunnycamel/master
Browse files Browse the repository at this point in the history
Make progress bar work
  • Loading branch information
DzenanJupic authored Jun 19, 2024
2 parents ac00e1c + 96a2cb4 commit e262454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn download(args: DownloadArgs) -> Result<()> {
let callback = Callback::new()
.connect_on_progress_closure(|cargs| {
// update progress bar
pb.add(cargs.current_chunk.saturating_sub(cargs.current_chunk) as u64);
pb.set(cargs.current_chunk as u64);
});

stream
Expand Down

0 comments on commit e262454

Please sign in to comment.