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:
Girish Ramakrishnan
2020-01-28 13:34:08 -08:00
parent c5d14195d6
commit 4a29fa93c5
4 changed files with 6 additions and 8 deletions

View File

@@ -1016,8 +1016,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.configureService = function (serviceName, memoryLimit, callback) {
post('/api/v1/services/' + serviceName, { memory: memoryLimit }, null, function (error, data, status) {
Client.prototype.configureService = function (serviceName, data, callback) {
post('/api/v1/services/' + serviceName, data, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));