1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-22 20:42:07 +00:00

updated default build timeout on Apple Metal to 120 seconds

This commit is contained in:
Gabriele Gristina 2023-04-26 03:11:55 +02:00
parent 5f332995bc
commit 5ac38b381d

View File

@ -742,8 +742,8 @@ int hc_mtlCreateKernel (void *hashcat_ctx, mtl_device_id metal_device, mtl_libra
dispatch_group_t group = dispatch_group_create ();
dispatch_queue_t queue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
// wait for 60 secs by default or using user-defined runtime if is set
long timeout = (user_options->runtime > 0) ? user_options->runtime : 60;
// wait for 120 secs by default or using user-defined runtime if is set
long timeout = (user_options->runtime > 0) ? user_options->runtime : 120;
dispatch_time_t when = dispatch_time (DISPATCH_TIME_NOW,NSEC_PER_SEC * timeout);