@nxtedition/lib 26.0.29 → 26.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +5 -1
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -317,7 +317,11 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
let affinity = null
|
|
320
|
-
if (
|
|
320
|
+
if (
|
|
321
|
+
process.platform === 'linux' &&
|
|
322
|
+
(isMainThread || appConfig.affinity != null) &&
|
|
323
|
+
appConfig.affinity !== false
|
|
324
|
+
) {
|
|
321
325
|
const allNodes = []
|
|
322
326
|
for (const entry of fs.readdirSync('/sys/devices/system/node')) {
|
|
323
327
|
if (!entry.startsWith('node')) {
|