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.
This commit is contained in:
Joris Vink 2022-08-26 10:19:26 +02:00
parent 11cf2075a2
commit c0d6657c26
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ kore_worker_init(void)
sizeof(*accept_lock));
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. */