From 710146e13992378022b568ef29f8b9d49e255280 Mon Sep 17 00:00:00 2001 From: Dave McKay Date: Tue, 29 Oct 2024 11:16:36 +0000 Subject: [PATCH] lightweight progress tracker use int --- csd3-side/scripts/backup_progress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csd3-side/scripts/backup_progress.py b/csd3-side/scripts/backup_progress.py index 51b39a5..4f2ff7a 100644 --- a/csd3-side/scripts/backup_progress.py +++ b/csd3-side/scripts/backup_progress.py @@ -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