mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
variable name fix
This commit is contained in:
parent
6ac4977252
commit
b1dcb3b018
2 changed files with 3 additions and 3 deletions
|
@ -104,12 +104,12 @@ export function initWorkerPool(initData: any): void {
|
|||
const threadCount = process.env.NS_THREAD_COUNT || os.cpus().length
|
||||
if (process.env.NS_THREAD_COUNT) {
|
||||
logger.Log(
|
||||
`Setting thread count from enviroment variable NS_WORKER_COUNT: '${workerCount}'`,
|
||||
`Setting thread count from enviroment variable NS_WORKER_COUNT: '${threadCount}'`,
|
||||
logger.GetColor('red')
|
||||
)
|
||||
}
|
||||
|
||||
for (let i = 0; i < workerCount; i++) {
|
||||
for (let i = 0; i < threadCount; i++) {
|
||||
workers.push({
|
||||
worker: factory.create(i),
|
||||
index: i,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3739153e95c3f75c17422d89c5e229cb97cb4abe
|
||||
Subproject commit 21fdbb57a3c60516e157ac5d328fa720dc6c8516
|
Loading…
Add table
Add a link
Reference in a new issue