Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit c608bd6

Browse files
wrac4242GitSquared
andauthored
fix logic error in last commit (#905)
Co-authored-by: Gaby <[email protected]>
1 parent 37ba84a commit c608bd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/_multithread.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ if (cluster.isMaster) {
44
const electron = require("electron");
55
const ipc = electron.ipcMain;
66
const signale = require("signale");
7-
const osCPUs = require("os").cpus().length
8-
// See #904
97
// Also, leave a core available for the renderer process
10-
const numCPUs = (osCPUs > 8) ? 7 : osCPUs;
8+
const osCPUs = require("os").cpus().length - 1
9+
// See #904
10+
const numCPUs = (osCPUs > 7) ? 7 : osCPUs;
1111

1212
const si = require("systeminformation");
1313

0 commit comments

Comments
 (0)