1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28:42 +00:00

cosmetic: show 100% when done, not n-1/n%

This commit is contained in:
Antoine Beaupré 2015-10-01 14:29:09 -04:00
parent 35b219597f
commit a7902e5657

View file

@ -48,9 +48,9 @@ def convert_segments(segments, dryrun):
print("converting %d segments..." % len(segments))
i = 0
for filename in segments:
i += 1
print("\rconverting segment %d/%d in place, %.2f%% done (%s)"
% (i, len(segments), float(i)/len(segments), filename), end='')
i += 1
if dryrun:
time.sleep(0.001)
else: