diff --git a/webadmin/src/js/client.js b/webadmin/src/js/client.js index 534079763..71589ac3f 100644 --- a/webadmin/src/js/client.js +++ b/webadmin/src/js/client.js @@ -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; };