Skip to content

Commit

Permalink
fixed broken progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Nov 8, 2024
1 parent 7e670b1 commit 54b6373
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/wizard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ async fn download_tools(
thread::spawn(move || {
while let Ok(progress_msg) = progress_rx.recv() {
match progress_msg {
DownloadProgress::Progress(current, total) => {
let percentage = (current * 100 / total) as u64;
pb.set_position(percentage);
DownloadProgress::Progress(current, _total) => {
pb.set_position(current);
}
DownloadProgress::Complete => {
pb.finish();
Expand Down

0 comments on commit 54b6373

Please sign in to comment.