about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--svc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svc.c b/svc.c
index 18e0144..24d90fd 100644
--- a/svc.c
+++ b/svc.c
@@ -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);