Skip to content

Commit

Permalink
lightweight progress tracker use int
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Oct 29, 2024
1 parent c46ca1a commit 710146e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csd3-side/scripts/backup_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
with open(logp, 'r') as logf:
for line in logf:
if 'Folders: ' in line and ' Files: ' in line:
total = float(line.split()[3].strip())
total = int(line.split()[3].strip())
break
with tqdm.tqdm(total=total) as pbar:
progress = 0
Expand Down

0 comments on commit 710146e

Please sign in to comment.