Fix another source of 0H/s in benchmark mode
authorjsteube <jens.steube@gmail.com>
Mon, 15 Feb 2016 19:32:01 +0000 (20:32 +0100)
committerjsteube <jens.steube@gmail.com>
Mon, 15 Feb 2016 19:32:01 +0000 (20:32 +0100)
src/oclHashcat.c

index 9312087..ec9fa8c 100644 (file)
@@ -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;
     }
   }