Skip to content

Commit

Permalink
Fix sync_workouts progressbar length
Browse files Browse the repository at this point in the history
  • Loading branch information
DCNick3 committed Jun 10, 2023
1 parent c4ff578 commit ff0e25c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/f-xoss-util/src/cli/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ async fn sync_workouts(device: &XossDevice, _options: &SyncOptions) -> Result<()
.template("{span_child_prefix}{spinner:.green} [{bar:40.cyan/blue}] {human_pos}/{human_len} ({eta} @ {per_sec})")
.unwrap()
.progress_chars("#>-"));
current_span.pb_set_length(workouts.len() as u64);
current_span.pb_set_length(missing_workouts.len() as u64);

for workout in missing_workouts {
let workout_filename = workout.filename();
let workout_path = local_workouts_dir.join(&workout_filename);

if workout_path.exists() {
continue;
}

info!(
"Downloading workout {:?} to {:?}",
workout.name, workout_path
Expand Down

0 comments on commit ff0e25c

Please sign in to comment.