Skip to content

Commit

Permalink
--catch-up option: Show progress relative to the targeted session
Browse files Browse the repository at this point in the history
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 openwall#4761
  • Loading branch information
magnumripper committed Aug 12, 2021
1 parent b2709ed commit 4dd72a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 4dd72a6

Please sign in to comment.