1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 04:23:06 +00:00

Fix Input.Mode in status in maskfile mode

This commit is contained in:
jsteube 2016-09-27 13:30:29 +02:00
parent 67dd2e9b67
commit 375bc56681

View File

@ -428,7 +428,9 @@ void status_display (opencl_ctx_t *opencl_ctx, const hashconfig_t *hashconfig, c
if (mask_ctx->masks_cnt > 1)
{
double mask_percentage = (double) mask_ctx->masks_pos / (double) mask_ctx->masks_cnt;
const int maks_pos_done = ((opencl_ctx->devices_status == STATUS_EXHAUSTED) && (opencl_ctx->run_main_level1 == true)) ? 1 : 0;
double mask_percentage = (double) (mask_ctx->masks_pos + maks_pos_done) / (double) mask_ctx->masks_cnt;
tmp_len += snprintf (tmp_buf + tmp_len, sizeof (tmp_buf) - tmp_len, " (%.02f%%)", mask_percentage * 100);
}