From 80e7e637cce7e54866eb2c047f960aa7f07ffe23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Wed, 19 Mar 2014 21:52:49 +0100 Subject: [PATCH] Make --stats output 78 characters wide --- attic/archiver.py | 4 ++-- attic/helpers.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/attic/archiver.py b/attic/archiver.py index a2e3c3950..0293cdc65 100644 --- a/attic/archiver.py +++ b/attic/archiver.py @@ -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): diff --git a/attic/helpers.py b/attic/helpers.py index 84dcfe418..e599636ec 100644 --- a/attic/helpers.py +++ b/attic/helpers.py @@ -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)))