1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-24 08:58:13 +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:
jsteube 2016-11-26 19:48:39 +01:00
parent 425031c9c3
commit a56aa30754

View File

@ -1938,14 +1938,18 @@ int run_cracker (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param, co
if (rc == -1) return -1;
/**
* benchmark
*/
if (user_options->speed_only == true) break;
/**
* speed
*/
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);
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;
}
}
else
{
// speed for slow hashes is set inside choose_kernel()
}
/**
* 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);
/**
* benchmark
*/
if (user_options->speed_only == true) break;
/**
* result
*/