services: use memorySwap to be consistent with the app memory UI
the memory limit sliders take the total memory (memory + swap).
This commit is contained in:
@@ -89,7 +89,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
$scope.serviceConfigure.reset();
|
||||
|
||||
$scope.serviceConfigure.service = service;
|
||||
$scope.serviceConfigure.memoryLimit = service.config.memory;
|
||||
$scope.serviceConfigure.memoryLimit = service.config.memorySwap; // memory + swap
|
||||
|
||||
// TODO improve those
|
||||
$scope.serviceConfigure.memoryTicks = [];
|
||||
@@ -109,7 +109,7 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
$scope.serviceConfigure.busy = true;
|
||||
$scope.serviceConfigure.error = null;
|
||||
|
||||
Client.configureService($scope.serviceConfigure.service.name, memoryLimit, function (error) {
|
||||
Client.configureService($scope.serviceConfigure.service.name, { memorySwap: memoryLimit, memory: memoryLimit/2 }, function (error) {
|
||||
$scope.serviceConfigure.busy = false;
|
||||
if (error) {
|
||||
$scope.serviceConfigure.error = error.message;
|
||||
|
||||
Reference in New Issue
Block a user