Update app.coffee

This commit is contained in:
Henry Oswald
2017-02-20 15:19:04 +00:00
committed by GitHub
parent 599977c3e0
commit bc1b8f4b2f

View File

@@ -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