diff --git a/src/utils/workerPool.ts b/src/utils/workerPool.ts index ebd00ef..fc785b0 100644 --- a/src/utils/workerPool.ts +++ b/src/utils/workerPool.ts @@ -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, diff --git a/submodules/qmining-page b/submodules/qmining-page index 3739153..21fdbb5 160000 --- a/submodules/qmining-page +++ b/submodules/qmining-page @@ -1 +1 @@ -Subproject commit 3739153e95c3f75c17422d89c5e229cb97cb4abe +Subproject commit 21fdbb57a3c60516e157ac5d328fa720dc6c8516