From 94bc7957c1dcc799852295a231f6a4b15e71fb33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 7 May 2021 10:03:10 +0200 Subject: [PATCH] progress: shorter format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- src/backup/store_progress.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backup/store_progress.rs b/src/backup/store_progress.rs index e355c9bf..754727fc 100644 --- a/src/backup/store_progress.rs +++ b/src/backup/store_progress.rs @@ -42,7 +42,7 @@ impl std::fmt::Display for StoreProgress { if self.group_snapshots == 0 { write!( f, - "{:.2}% ({} of {} groups)", + "{:.2}% ({}/{} groups)", self.percentage() * 100.0, self.done_groups, self.total_groups, @@ -50,7 +50,7 @@ impl std::fmt::Display for StoreProgress { } else if self.total_groups == 1 { write!( f, - "{:.2}% ({} of {} snapshots)", + "{:.2}% ({}/{} snapshots)", self.percentage() * 100.0, self.done_snapshots, self.group_snapshots, @@ -58,7 +58,7 @@ impl std::fmt::Display for StoreProgress { } else if self.done_snapshots == self.group_snapshots { write!( f, - "{:.2}% ({} of {} groups)", + "{:.2}% ({}/{} groups)", self.percentage() * 100.0, current_group, self.total_groups, @@ -66,7 +66,7 @@ impl std::fmt::Display for StoreProgress { } else { write!( f, - "{:.2}% ({} of {} groups, {} of {} group #{}'s snapshots)", + "{:.2}% ({}/{} groups, {}/{} snapshots in group #{})", self.percentage() * 100.0, self.done_groups, self.total_groups,