diff options
-rw-r--r-- | svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ bool mog_svc_start_each(void *svc_ptr, void *main_ptr) * Increasing threads here just leads to lock contention inside the * kernel (accept/accept4/EPOLL_CTL_ADD) */ - athr = mog_main->worker_processes > 1 ? 1 : MAX(2, athr); + athr = mog_main->worker_processes > 1 ? 1 : MIN(2, athr); svc->queue = q; mog_thrpool_start(&q->thrpool, nthr, mog_queue_loop, q); |