limit multithreading to 7 extra threads

see #904
上级 048feb50
......@@ -4,7 +4,10 @@ if (cluster.isMaster) {
const electron = require("electron");
const ipc = electron.ipcMain;
const signale = require("signale");
const numCPUs = require("os").cpus().length - 1; // Leave a core available for the renderer process
const osCPUs = require("os").cpus().length
// See #904
// Also, leave a core available for the renderer process
const numCPUs = (osCPUs > 8) ? 7 : osCPUs;
const si = require("systeminformation");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册