This commit is contained in:
William Mantly 2016-05-26 20:15:58 -04:00
parent f32d6f70a9
commit 19293fdaff

View File

@ -107,7 +107,7 @@ var getAvailContainer = function(){
};
var startWorker = function(worker, stopPercent){
stopPercent = stopPercent || 60;
stopPercent = stopPercent || 80;
getFreeMem(worker.ip, function(usedMemPercent){
if(usedMemPercent < stopPercent ){
var name = 'crunner-'+(Math.random()*100).toString().replace('.','');