mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-17 18:12:05 +00:00
Fix reported speed for slow hashes which was broken somewhere between hashcat (v3.10-809-g7fe575e) to hashcat (v3.10-820-g899413f)
This commit is contained in:
parent
425031c9c3
commit
a56aa30754
19
src/opencl.c
19
src/opencl.c
@ -1938,14 +1938,18 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
|||||||
|
|
||||||
if (rc == -1) return -1;
|
if (rc == -1) return -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* benchmark
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (user_options->speed_only == true) break;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* speed
|
* speed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const u64 perf_sum_all = (u64) pws_cnt * (u64) innerloop_left;
|
const u64 perf_sum_all = (u64) pws_cnt * (u64) innerloop_left;
|
||||||
|
|
||||||
if (hashconfig->attack_exec == ATTACK_EXEC_INSIDE_KERNEL)
|
|
||||||
{
|
|
||||||
const double speed_msec = hc_timer_get (device_param->timer_speed);
|
const double speed_msec = hc_timer_get (device_param->timer_speed);
|
||||||
|
|
||||||
hc_timer_set (&device_param->timer_speed);
|
hc_timer_set (&device_param->timer_speed);
|
||||||
@ -1960,11 +1964,6 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
|||||||
{
|
{
|
||||||
speed_pos = 0;
|
speed_pos = 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// speed for slow hashes is set inside choose_kernel()
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* progress
|
* progress
|
||||||
@ -1976,12 +1975,6 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
|
|||||||
|
|
||||||
hc_thread_mutex_unlock (status_ctx->mux_counter);
|
hc_thread_mutex_unlock (status_ctx->mux_counter);
|
||||||
|
|
||||||
/**
|
|
||||||
* benchmark
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (user_options->speed_only == true) break;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* result
|
* result
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user