From 128320f80e58264f85231d1b725878b0a4a4a40f Mon Sep 17 00:00:00 2001 From: William Mantly Date: Mon, 9 Oct 2017 00:39:02 -0400 Subject: [PATCH] fixes --- routes/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.js b/routes/api.js index e339f7b..a813971 100644 --- a/routes/api.js +++ b/routes/api.js @@ -216,7 +216,7 @@ var workers = (function(){ 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; + if(workers.currentCreating+workers.length < workers.settings.min) null; else if(workers.currentCreating) return console.log('killing balance, worker is being created.');