In benchmark-mode, do not depend any longer on a fixed time, better use a single...
authorJens Steube <jens.steube@gmail.com>
Mon, 15 Feb 2016 11:38:54 +0000 (12:38 +0100)
committerJens Steube <jens.steube@gmail.com>
Mon, 15 Feb 2016 11:38:54 +0000 (12:38 +0100)
src/oclHashcat.c

index b229e77..888fc8e 100644 (file)
@@ -3299,6 +3299,15 @@ static void run_cracker (hc_device_param_t *device_param, const uint pw_cnt, con
       {
         speed_pos = 0;
       }
+
+      /**
+       * benchmark
+       */
+
+      if (data.benchmark == 1)
+      {
+        data.devices_status = STATUS_BYPASS;
+      };
     }
   }
 
@@ -6859,13 +6868,6 @@ int main (int argc, char **argv)
 
       data.workload_profile = workload_profile;
     }
-
-    if (runtime_chgd == 0)
-    {
-      runtime = 17;
-
-      data.runtime = runtime;
-    }
   }
 
   /**