diff --git a/src/modules/module_22100.c b/src/modules/module_22100.c index da1e4c2f7..82d008100 100644 --- a/src/modules/module_22100.c +++ b/src/modules/module_22100.c @@ -80,7 +80,7 @@ u64 module_tmp_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED c u32 module_kernel_threads_max (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra) { - const u32 kernel_threads_max = 256; + const u32 kernel_threads_max = (user_options->kernel_threads_chgd == true) ? user_options->kernel_threads : 256; return kernel_threads_max; }