]> git.proxmox.com Git - proxmox-backup.git/commitdiff
progress: shorter format
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 7 May 2021 08:03:10 +0000 (10:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 7 May 2021 10:14:37 +0000 (12:14 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/backup/store_progress.rs

index e355c9bf2c96231dec8b85996df6d956b80f83d7..754727fcc6f4d267cd5ee83408f9687d538db89c 100644 (file)
@@ -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,