1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-02 21:08:28 +00:00

More benchmark fixes

This commit is contained in:
jsteube 2016-11-26 20:14:30 +01:00
parent a56aa30754
commit ed149fdd52

View File

@ -1169,7 +1169,7 @@ int choose_kernel (hashcat_ctx_t *hashcat_ctx, hc_device_param_t *device_param,
if (user_options->speed_only == true) if (user_options->speed_only == true)
{ {
if (speed_msec > 4096) break; if (speed_msec > 4096) return -2; // special RC
} }
} }
@ -1939,10 +1939,13 @@ 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 * benchmark, part1
*/ */
if (user_options->speed_only == true) break; if (user_options->speed_only == true)
{
if (rc == -2) break;
}
/** /**
* speed * speed
@ -1975,6 +1978,12 @@ 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, part2
*/
if (user_options->speed_only == true) break;
/** /**
* result * result
*/ */