mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-30 19:57:42 +00:00
cosmetic: show 100% when done, not n-1/n%
This commit is contained in:
parent
35b219597f
commit
a7902e5657
1 changed files with 1 additions and 1 deletions
|
@ -48,9 +48,9 @@ def convert_segments(segments, dryrun):
|
||||||
print("converting %d segments..." % len(segments))
|
print("converting %d segments..." % len(segments))
|
||||||
i = 0
|
i = 0
|
||||||
for filename in segments:
|
for filename in segments:
|
||||||
|
i += 1
|
||||||
print("\rconverting segment %d/%d in place, %.2f%% done (%s)"
|
print("\rconverting segment %d/%d in place, %.2f%% done (%s)"
|
||||||
% (i, len(segments), float(i)/len(segments), filename), end='')
|
% (i, len(segments), float(i)/len(segments), filename), end='')
|
||||||
i += 1
|
|
||||||
if dryrun:
|
if dryrun:
|
||||||
time.sleep(0.001)
|
time.sleep(0.001)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue