app memory: make slider go till RAM

anything above RAM is useless
This commit is contained in:
Girish Ramakrishnan
2024-04-10 10:01:11 +02:00
parent 59fa26b0fb
commit 8b7dca00af
6 changed files with 15 additions and 46 deletions
+1 -10
View File
@@ -327,7 +327,7 @@ function prettyBinarySize(size, fallback) {
// we can also use KB here (JEDEC)
var i = Math.floor(Math.log(size) / Math.log(1024));
return (size / Math.pow(1024, i)).toFixed(2) * 1 + ' ' + ['B', 'KiB', 'MiB', 'GiB', 'TiB'][i];
return (size / Math.pow(1024, i)).toFixed(3) * 1 + ' ' + ['B', 'KiB', 'MiB', 'GiB', 'TiB'][i];
}
// decimal units (SI) 1000 based
@@ -1857,15 +1857,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.getAppLimits = function (appId, callback) {
get('/api/v1/apps/' + appId + '/limits', null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.limits);
});
};
Client.prototype.getAppWithTask = function (appId, callback) {
var that = this;