mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
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:
parent
11cf2075a2
commit
c0d6657c26
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user