From 7956877f14a8e28796bfb688061d5cb9178bbe8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Mon, 30 Nov 2020 16:22:17 +0100 Subject: [PATCH] gc: shorten progress messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit we have messages starting the phases anyway, and limit the number of progress updates so that context remains available at all times. Signed-off-by: Fabian Grünbichler --- src/backup/chunk_store.rs | 2 +- src/backup/datastore.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index 59719bad..34d6f655 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -301,7 +301,7 @@ impl ChunkStore { last_percentage = percentage; crate::task_log!( worker, - "percentage done: phase2 {}% (processed {} chunks)", + "processed {}% ({} chunks)", percentage, chunk_count, ); diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs index 19efc23f..b199f11f 100644 --- a/src/backup/datastore.rs +++ b/src/backup/datastore.rs @@ -505,7 +505,7 @@ impl DataStore { if percentage > last_percentage { crate::task_log!( worker, - "percentage done: phase1 {}% ({} of {} index files)", + "marked {}% ({} of {} index files)", percentage, done, image_count,