From bc1b8f4b2f7126f0810f6dbf9479c512fb4255a9 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 20 Feb 2017 15:19:04 +0000 Subject: [PATCH] Update app.coffee --- app.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.coffee b/app.coffee index ed3349b..b5e5220 100644 --- a/app.coffee +++ b/app.coffee @@ -176,7 +176,8 @@ server = net.createServer (socket) -> socket.destroy() currentLoad = os.loadavg()[0] - + + # On staging there may be 1 cpu on host, don't want to set availableWorkingCpus to 0 in that instance if os.cpus().length == 1 availableWorkingCpus = 1 else