CPU shares is a percent

This commit is contained in:
Girish Ramakrishnan
2020-03-19 17:15:08 -07:00
parent 39a0f93f69
commit b81ba49370

View File

@@ -172,7 +172,7 @@ angular.module('Application').controller('ActivityController', ['$scope', '$loca
} else if (data.memoryLimit) {
return 'Memory limit of ' + appName(app) + ' was set to ' + data.memoryLimit;
} else if (data.cpuShares) {
return 'CPU shares of ' + appName(app) + ' was set to ' + data.cpuShares;
return 'CPU shares of ' + appName(app) + ' was set to ' + Math.round((data.cpuShares * 100)/1024) + '%';
} else if (data.env) {
return 'Env vars of ' + appName(app) + ' was changed';
} else if ('debugMode' in data) { // since it can be null