@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.
Files changed (2) hide show
  1. package/app.js +5 -1
  2. 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 (isMainThread && appConfig.affinity !== false && process.platform === 'linux') {
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')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "26.0.29",
3
+ "version": "26.0.30",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",