add note that memory is 1024 based

This commit is contained in:
Girish Ramakrishnan
2020-04-01 16:42:20 -07:00
parent 420c7ebd67
commit c7f2314a15
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -281,9 +281,9 @@ app.filter('prettyDomains', function () {
};
});
// we use 1024 unit in memory limit in manifest
app.filter('prettyMemory', function () {
return function (memory) {
// Adjust the default memory limit if it changes
return memory ? Math.floor(memory / 1024 / 1024) : 256;
};
});
+1
View File
@@ -17,6 +17,7 @@ angular.module('Application').controller('GraphsController', ['$scope', '$locati
$scope.installedApps = Client.getInstalledApps();
// we use 1024 to match free -m output (which is not si units)
function bytesToMegaBytes(value) {
return (value/1024/1024).toFixed(2);
}