From: jsteube Date: Mon, 15 Feb 2016 19:32:01 +0000 (+0100) Subject: Fix another source of 0H/s in benchmark mode X-Git-Tag: v3.00-beta~279 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=bbadabe278bbd5efea960489a381fdd3540d1673;p=hashcat.git Fix another source of 0H/s in benchmark mode --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 9312087..ec9fa8c 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -3357,10 +3357,7 @@ static void run_cracker (hc_device_param_t *device_param, const uint pw_cnt, con * benchmark */ - if (data.benchmark == 1) - { - data.devices_status = STATUS_BYPASS; - }; + if (data.benchmark == 1) break; } } @@ -4612,6 +4609,8 @@ static void *thread_calc (void *p) if (data.devices_status == STATUS_QUIT) break; if (data.devices_status == STATUS_BYPASS) break; + if (data.benchmark == 1) break; + device_param->words_done = words_fin; } }