Skip to content

Commit

Permalink
change to readlines
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Nov 1, 2024
1 parent be36bb2 commit 8551d71
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions csd3-side/scripts/backup_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@
continue
prog = 0
total_size = 0
for line in logc:
for line in logc.readlines()[1:]:
if 'collated_' in line:
prog += len(line.split('"')[-2].split(','))
elif not 'LOCAL_FOLDER' in line:
prog += 1
if not 'LOCAL_FOLDER' in line:
total_size += int(line.split(',')[2])
total_size += int(line.split(',')[2])
if total_size > prev_total_size:
prev_total_size = total_size
if started:
Expand Down

0 comments on commit 8551d71

Please sign in to comment.