From 4dd72a6277800f07e84264f49377ff713ff2c8c8 Mon Sep 17 00:00:00 2001 From: magnum Date: Thu, 12 Aug 2021 16:53:55 +0200 Subject: [PATCH] --catch-up option: Show progress relative to the targeted session I intentionally ignored this when I added the --catch-up option because I had the idea it would be messy in several ways, but I came to realize the code is trivial and bullet proof. See #4761 --- src/status.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/status.c b/src/status.c index 4eca3bda56c..02f0efbea19 100644 --- a/src/status.c +++ b/src/status.c @@ -454,6 +454,9 @@ void status_print(void) if (options.flags & FLG_STATUS_CHK) percent_value = status.progress; else + if (options.catchup && john_max_cands) { + percent_value = 100.0 * status.cands / john_max_cands; + } else if (status_get_progress) percent_value = status_get_progress();