mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +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:
|
||||
t = datetime.now()
|
||||
diff = t - t0
|
||||
print('-' * 70)
|
||||
print('-' * 78)
|
||||
print('Archive name: %s' % args.archive.archive)
|
||||
print('Archive fingerprint: %s' % hexlify(archive.id).decode('ascii'))
|
||||
print('Start time: %s' % t0.strftime('%c'))
|
||||
print('End time: %s' % t.strftime('%c'))
|
||||
print('Duration: %s' % format_timedelta(diff))
|
||||
archive.stats.print_(cache)
|
||||
print('-' * 70)
|
||||
print('-' * 78)
|
||||
return self.exit_code
|
||||
|
||||
def _process(self, archive, cache, excludes, skip_inodes, path, restrict_dev):
|
||||
|
|
|
@ -151,9 +151,9 @@ def print_(self, cache):
|
|||
total_size, total_csize, unique_size, unique_csize = cache.chunks.summarize()
|
||||
print('Number of files: %d' % self.nfiles)
|
||||
print()
|
||||
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('All archives: %18s %18s %18s' % (format_file_size(total_size), format_file_size(total_csize), format_file_size(unique_csize)))
|
||||
print(' Original size Compressed size Deduplicated size')
|
||||
print('This archive: %20s %20s %20s' % (format_file_size(self.osize), format_file_size(self.csize), format_file_size(self.usize)))
|
||||
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