1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-24 23:48:39 +00:00

Fix CPU thread count auto-tuning

This commit is contained in:
jsteube 2019-03-03 11:10:46 +01:00
parent b2347f0962
commit f5317a6b27

View File

@ -4346,7 +4346,7 @@ static u32 get_kernel_threads (hashcat_ctx_t *hashcat_ctx, const hc_device_param
if (device_param->device_type & CL_DEVICE_TYPE_CPU) if (device_param->device_type & CL_DEVICE_TYPE_CPU)
{ {
if ((kernel_threads_min >= 1) && (kernel_threads_max <= 1)) if ((1 >= kernel_threads_min) && (1 <= kernel_threads_max))
{ {
kernel_threads_min = 1; kernel_threads_min = 1;
kernel_threads_max = 1; kernel_threads_max = 1;