diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-06-11 18:27:14 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-06-13 19:39:33 +0300 |
commit | bfaa23c896df72b8b34ad70c723d05a206a56c19 (patch) | |
tree | f32cd3cebbc6190efa8507b444b2d0629baf1187 /obnamlib/backup_progress.py | |
parent | 761c367c9d2a101fc92b225cc234f1da5d28f4bf (diff) | |
download | obnam-bfaa23c896df72b8b34ad70c723d05a206a56c19.tar.gz |
Fix: Make "obnam forget" for GA delete unused chunks
Diffstat (limited to 'obnamlib/backup_progress.py')
-rw-r--r-- | obnamlib/backup_progress.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/obnamlib/backup_progress.py b/obnamlib/backup_progress.py index 026dd604..4927c49f 100644 --- a/obnamlib/backup_progress.py +++ b/obnamlib/backup_progress.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2015 Lars Wirzenius +# Copyright (C) 2009-2017 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -116,7 +116,7 @@ class BackupProgress(object): def report_stats(self, output, fs, quiet, report=None): # pragma: no cover if report is None: report = self.compute_report(fs) - + duration_string = obnamlib.humanise_duration(report['duration']) chunk_amount, chunk_unit = obnamlib.humanise_size( @@ -134,7 +134,8 @@ class BackupProgress(object): overhead_bytes = max(0, overhead_bytes) overhead_amount, overhead_unit = obnamlib.humanise_size(overhead_bytes) if report['uploaded-total-bytes'] > 0: - overhead_percent = 100.0 * overhead_bytes / report['uploaded-total-bytes'] + overhead_percent = ( + 100.0 * overhead_bytes / report['uploaded-total-bytes']) else: overhead_percent = 0.0 |