mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
Make --stats output 78 characters wide
This commit is contained in:
parent
92c333c071
commit
80e7e637cc
2 changed files with 5 additions and 5 deletions
|
@ -130,14 +130,14 @@ def do_create(self, args):
|
||||||
if args.stats:
|
if args.stats:
|
||||||
t = datetime.now()
|
t = datetime.now()
|
||||||
diff = t - t0
|
diff = t - t0
|
||||||
print('-' * 70)
|
print('-' * 78)
|
||||||
print('Archive name: %s' % args.archive.archive)
|
print('Archive name: %s' % args.archive.archive)
|
||||||
print('Archive fingerprint: %s' % hexlify(archive.id).decode('ascii'))
|
print('Archive fingerprint: %s' % hexlify(archive.id).decode('ascii'))
|
||||||
print('Start time: %s' % t0.strftime('%c'))
|
print('Start time: %s' % t0.strftime('%c'))
|
||||||
print('End time: %s' % t.strftime('%c'))
|
print('End time: %s' % t.strftime('%c'))
|
||||||
print('Duration: %s' % format_timedelta(diff))
|
print('Duration: %s' % format_timedelta(diff))
|
||||||
archive.stats.print_(cache)
|
archive.stats.print_(cache)
|
||||||
print('-' * 70)
|
print('-' * 78)
|
||||||
return self.exit_code
|
return self.exit_code
|
||||||
|
|
||||||
def _process(self, archive, cache, excludes, skip_inodes, path, restrict_dev):
|
def _process(self, archive, cache, excludes, skip_inodes, path, restrict_dev):
|
||||||
|
|
|
@ -152,8 +152,8 @@ def print_(self, cache):
|
||||||
print('Number of files: %d' % self.nfiles)
|
print('Number of files: %d' % self.nfiles)
|
||||||
print()
|
print()
|
||||||
print(' Original size Compressed size Deduplicated size')
|
print(' Original size Compressed size Deduplicated size')
|
||||||
print('This archive: %18s %18s %18s' % (format_file_size(self.osize), format_file_size(self.csize), format_file_size(self.usize)))
|
print('This archive: %20s %20s %20s' % (format_file_size(self.osize), format_file_size(self.csize), format_file_size(self.usize)))
|
||||||
print('All archives: %18s %18s %18s' % (format_file_size(total_size), format_file_size(total_csize), format_file_size(unique_csize)))
|
print('All archives: %20s %20s %20s' % (format_file_size(total_size), format_file_size(total_csize), format_file_size(unique_csize)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue