mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed manual nice setting
This commit is contained in:
parent
984fd8ce9e
commit
c1197533c7
2 changed files with 12 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
import os from 'os'
|
||||
// import os from 'os'
|
||||
import { isMainThread, parentPort, workerData } from 'worker_threads'
|
||||
|
||||
import logger from './logger'
|
||||
|
@ -588,8 +588,8 @@ function doSearch(
|
|||
// ---------------------------------------------------------------------------------------------------------
|
||||
|
||||
if (!isMainThread) {
|
||||
os.setPriority(10)
|
||||
logger.Log(`Worker thread priority set to ${os.getPriority()}`)
|
||||
// os.setPriority(10)
|
||||
// logger.Log(`Worker thread priority set to ${os.getPriority()}`)
|
||||
|
||||
const { workerIndex } = workerData
|
||||
let qdbs: Array<QuestionDb> = workerData.initData
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue