From 5711070d92e0ad84b2bfa4f67ec07ddd06441375 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Mon, 9 Oct 2017 00:32:24 -0400 Subject: [PATCH] simpler --- routes/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/api.js b/routes/api.js index c71d815..e339f7b 100644 --- a/routes/api.js +++ b/routes/api.js @@ -214,6 +214,7 @@ var workers = (function(){ workers.checkForZombies(); + console.log(workers.currentCreating+workers.length, workers.currentCreating+workers.length < workers.min) // if there are workers being created, stop scale up and down check if(workers.currentCreating+workers.length < workers.min) null; else if(workers.currentCreating)