From 654628b44d6414ccd2f7faf2149f67659096242b Mon Sep 17 00:00:00 2001 From: Thomas Harvey Date: Wed, 11 Oct 2017 02:06:21 -0400 Subject: [PATCH] adding changes --- routes/worker_collection.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/worker_collection.js b/routes/worker_collection.js index 0f72581..112e99a 100644 --- a/routes/worker_collection.js +++ b/routes/worker_collection.js @@ -371,6 +371,11 @@ var WorkerCollection = (function(){ } } + console.log( + `LMA: ${lastMinAval}`, + `Settings MA: ${workers.settings.minAvail}`, + `Workers: ${workers.length}` + ); if(lastMinAval > workers.settings.minAvail){ // Remove workers if there are more than the settings states console.log( @@ -395,6 +400,7 @@ var WorkerCollection = (function(){ } }; + workers.settingsSave = function(){ // save the live settings file to disk