Author: Joris Vink <firstname.lastname@example.org>
Date: Fri, 26 Aug 2022 10:19:26 +0200
Fix a log message regarding worker count.
The worker_count is incremented by 2 earlier to account for keymgr/acme
but aren't actually workers that should count towards CPU pinning.
So adjust the count when comparing to cpu_count when logging that there
are more workers than cpus.
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/worker.c b/src/worker.c
@@ -132,7 +132,7 @@ kore_worker_init(void)
memset(kore_workers, 0, sizeof(struct kore_worker) * worker_count);
- if (worker_count > cpu_count)
+ if ((worker_count - 2) > cpu_count)
kore_log(LOG_NOTICE, "more worker processes than cpu cores");
/* Setup log buffers. */