This commit is contained in:
Girish Ramakrishnan
2016-09-13 18:01:10 -07:00
parent 12e2e64c22
commit 2ae4f76af5

View File

@@ -980,6 +980,8 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
var totalMemory = roundedMemory * 1.2; // box-setup.sh creates equal amount of swap. 1.2 factor is arbitrary
var available = (totalMemory || 0) - used;
console.log(needed, used, roundedMemory, totalMemory, available);
return (available - needed) >= 0;
};