Skip to content

Commit ff0e25c

Browse files
committed
Fix sync_workouts progressbar length
1 parent c4ff578 commit ff0e25c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/f-xoss-util/src/cli/device.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,12 @@ async fn sync_workouts(device: &XossDevice, _options: &SyncOptions) -> Result<()
3333
.template("{span_child_prefix}{spinner:.green} [{bar:40.cyan/blue}] {human_pos}/{human_len} ({eta} @ {per_sec})")
3434
.unwrap()
3535
.progress_chars("#>-"));
36-
current_span.pb_set_length(workouts.len() as u64);
36+
current_span.pb_set_length(missing_workouts.len() as u64);
3737

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

42-
if workout_path.exists() {
43-
continue;
44-
}
45-
4642
info!(
4743
"Downloading workout {:?} to {:?}",
4844
workout.name, workout_path

0 commit comments

Comments
 (0)