Skip to content

Commit 446f157

Browse files
committed
Show total bytes in progress
1 parent a1b4c7b commit 446f157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ota_updater/ota_updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def on_progress(progress, total):
2727
g_total = total
2828
bar_width = 30
2929
bar = int(bar_width*(progress/total))
30-
print("\r[", '+'*bar, ' '*(bar_width-bar), "] ", progress, end='', sep='')
30+
print("\r[", '+'*bar, ' '*(bar_width-bar), "] ", progress, "/", total, end='', sep='')
3131
if (progress == total):
3232
print()
3333
sys.stdout.flush()

0 commit comments

Comments
 (0)