# HG changeset patch # User Tuomo Valkonen # Date 1749089896 18000 # Node ID 4efb3abc77f37bf26d05589494f4d0e5cdab33fc # Parent 52362f545be16e4ca04b15d1fe2df8e95497f6fe progress display tweak diff -r 52362f545be1 -r 4efb3abc77f3 borgend/ui.py --- a/borgend/ui.py Wed Jun 04 08:45:21 2025 -0500 +++ b/borgend/ui.py Wed Jun 04 21:18:16 2025 -0500 @@ -166,16 +166,16 @@ # Operation running progress='' d=status.detail - if 'progress_current' in d and 'progress_total' in d: + if 'original_size' in d and 'deduplicated_size' in d: + progress=' %s→%s' % (humanbytes(d['original_size']), + humanbytes(d['deduplicated_size'])) + elif 'progress_current' in d and 'progress_total' in d: progress=progress_percentage(d['progress_current'], d['progress_total'], d) elif ('progress_current_secondary' in d and 'progress_total_secondary' in d): progress=progress_parts(d['progress_current_secondary'], d['progress_total_secondary'], d) - elif 'original_size' in d and 'deduplicated_size' in d: - progress=' %s→%s' % (humanbytes(d['original_size']), - humanbytes(d['deduplicated_size'])) howrunning = "running %s%s" % (status.type, progress)