From dd2511233d3844f6e25f8c53e1fa842848839197 Mon Sep 17 00:00:00 2001 From: jsteube Date: Thu, 5 Jul 2018 14:14:39 +0200 Subject: [PATCH] Fixed a miscalculation in --progress-only mode output for extreme slow kernels like -m 14800 --- docs/changes.txt | 1 + src/status.c | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 415c66486..6d80927af 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -21,6 +21,7 @@ - Fixed a function declaration attribute in -m 8900 kernel leading to unuseable -m 9300 which shares kernel code with -m 8900 - Fixed a missing kernel in -m 5600 in combination with -a 3 and -O if mask is >= 16 characters +- Fixed a miscalculation in --progress-only mode output for extreme slow kernels like -m 14800 - Fixed missing code section in -m 2500 and -m 2501 to crack corrupted handshakes with a LE endian bitness base * changes v4.0.1 -> v4.1.0 diff --git a/src/status.c b/src/status.c index 33a0012c2..f5bb22b8f 100644 --- a/src/status.c +++ b/src/status.c @@ -1780,7 +1780,14 @@ double status_get_runtime_msec_dev (const hashcat_ctx_t *hashcat_ctx, const int if (device_param->skipped == true) return 0; - return device_param->outerloop_msec; + float q = 1; + + if (device_param->speed_only_finish == true) + { + q = (float) device_param->outerloop_left / (float) device_param->speed_cnt[0]; + } + + return device_param->outerloop_msec * q; } int status_get_kernel_accel_dev (const hashcat_ctx_t *hashcat_ctx, const int device_id)