From f2e259871634aedf3c8ab47104aeeb4e334d143e Mon Sep 17 00:00:00 2001 From: Vadim Sadokhov Date: Tue, 22 Aug 2023 17:20:00 +0300 Subject: [PATCH] change option max value --- runtime/thread-pool.cpp | 2 +- runtime/thread-pool.h | 2 +- server/php-engine.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/thread-pool.cpp b/runtime/thread-pool.cpp index 782084e92f..d2e3c54798 100644 --- a/runtime/thread-pool.cpp +++ b/runtime/thread-pool.cpp @@ -26,4 +26,4 @@ void ThreadPool::init() noexcept { } } -uint64_t thread_pool_size = 0; +int thread_pool_size = 0; diff --git a/runtime/thread-pool.h b/runtime/thread-pool.h index f14d62998a..6fd03557c6 100644 --- a/runtime/thread-pool.h +++ b/runtime/thread-pool.h @@ -40,4 +40,4 @@ class ThreadPool : vk::not_copyable { BS::thread_pool * thread_pool_ptr{nullptr}; }; -extern uint64_t thread_pool_size; +extern int thread_pool_size; diff --git a/server/php-engine.cpp b/server/php-engine.cpp index c14f061338..4e7fb01359 100644 --- a/server/php-engine.cpp +++ b/server/php-engine.cpp @@ -2196,7 +2196,7 @@ int main_args_handler(int i, const char *long_option) { return res; } case 2036: { - return read_option_to(long_option, 0UL, UINT64_MAX, thread_pool_size); + return read_option_to(long_option, 0, 2048, thread_pool_size); } default: return -1;