dashboard: show pretty memory limits in eventlog

This commit is contained in:
Johannes Zellner
2024-06-21 14:43:10 +02:00
parent ce2f1b4170
commit 424ec1c90d

View File

@@ -3703,7 +3703,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
} else if (data.icon) {
return 'Icon ' + appName('of', app) + ' was changed';
} else if (data.memoryLimit) {
return 'Memory limit ' + appName('of', app) + ' was set to ' + data.memoryLimit;
return 'Memory limit ' + appName('of', app) + ' was set to ' + prettyBinarySize(data.memoryLimit);
} else if (data.cpuShares) {
return 'CPU shares ' + appName('of', app) + ' was set to ' + Math.round((data.cpuShares * 100)/1024) + '%';
} else if (data.cpuQuota) {