Fix reported speed for slow hashes which was broken somewhere between hashcat (v3.10-809-g7fe575e) to hashcat (v3.10-820-g899413f)

pull/617/head
jsteube 8 years ago
parent 425031c9c3
commit a56aa30754

@ -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
*/

Loading…
Cancel
Save