backups: memory max is RAM
This commit is contained in:
@@ -848,8 +848,8 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
|
||||
if (error) console.error(error);
|
||||
|
||||
$scope.memory = memory;
|
||||
const limit = Math.max((memory.memory + memory.swap) * 1.5, 2 * 1024 * 1024);
|
||||
$scope.MAX_MEMORY_LIMIT = parseInt(limit/1024/1024/1024) * 1024 * 1024 * 1024; // round to value matching 250mb steps
|
||||
var nearestGb = Math.ceil($scope.memory.memory / (1024*1024*1024)) * 1024 * 1024 * 1024;
|
||||
$scope.MAX_MEMORY_LIMIT = nearestGb;
|
||||
|
||||
fetchBackups();
|
||||
getBackupConfig();
|
||||
|
||||
Reference in New Issue
Block a user