mirror of https://github.com/borgbackup/borg.git
add percentage progress
This commit is contained in:
parent
0d457bc846
commit
3bb3bd45fc
|
@ -44,7 +44,8 @@ class AtticRepositoryConverter(Repository):
|
|||
print("converting %d segments..." % len(segments))
|
||||
i = 0
|
||||
for filename in segments:
|
||||
print("\rconverting segment %s in place (%d/%d)" % (filename, i, len(segments)), end='')
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue