[GH-ISSUE #1875] Store progress with decimals instead of just an integer in .rec file #1246

Open
opened 2026-10-14 03:41:04 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @frank-dittrich on GitHub (Nov 2, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1875

Originally assigned to: @frank-dittrich on GitHub.

This probably requires bumping the rec file format version (RECOVERY_V in params.h), so it needs to be coordinated with master. And this change alone most likely isn't a good enough reason to bump the .rec file version. So may be we should keep this in mind when the version needs to be bumped anyway.

The struct status_main definition in status.h would also need to be adjusted.

Currently, when running ./john --status, the two decimals of the reported progress will always be 00.
Would be nice to get the same level of detail you get when pressing any key or with kill -s USR1 <pid>.

Worth discussing on john-dev?

Originally created by @frank-dittrich on GitHub (Nov 2, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1875 Originally assigned to: @frank-dittrich on GitHub. This probably requires bumping the rec file format version (RECOVERY_V in params.h), so it needs to be coordinated with master. And this change alone most likely isn't a good enough reason to bump the .rec file version. So may be we should keep this in mind when the version needs to be bumped anyway. The struct status_main definition in status.h would also need to be adjusted. Currently, when running `./john --status`, the two decimals of the reported progress will always be `00`. Would be nice to get the same level of detail you get when pressing any key or with `kill -s USR1 <pid>`. Worth discussing on john-dev?
Author
Owner

@magnumripper commented on GitHub (Nov 2, 2015):

What benefit would fractions of a percent give you? During a run it's needed for ETA but you won't get that from --status anyway.

<!-- gh-comment-id:153121400 --> @magnumripper commented on GitHub (Nov 2, 2015): What benefit would fractions of a percent give you? During a run it's needed for ETA but you won't get that from --status anyway.
Author
Owner

@frank-dittrich commented on GitHub (Nov 2, 2015):

To know which of the sessions I restore.
For large wordlists (rockyou) and slow formats or many hashes, processing even one % takes quite some time.
Just comparing run time and guesses might not be "fair", if one of those sessons had ro run with many other tasks in parallel.

<!-- gh-comment-id:153125039 --> @frank-dittrich commented on GitHub (Nov 2, 2015): To know which of the sessions I restore. For large wordlists (rockyou) and slow formats or many hashes, processing even one % takes quite some time. Just comparing run time and guesses might not be "fair", if one of those sessons had ro run with many other tasks in parallel.
Author
Owner

@magnumripper commented on GitHub (Nov 2, 2015):

An integer will load fine into %f. But if reading a float with %d the decimals will stay as the next field, failing the restore.

<!-- gh-comment-id:153134618 --> @magnumripper commented on GitHub (Nov 2, 2015): An integer will load fine into `%f`. But if reading a float with `%d` the decimals will stay as the next field, failing the restore.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1246
No description provided.