Handle unlimited memory in app view

This commit is contained in:
Johannes Zellner
2022-12-02 19:06:06 +01:00
parent b6ca187fd3
commit 136efd66e5

View File

@@ -238,6 +238,7 @@ function imageErrorHandler(elem) {
// binary units (IEC) 1024 based
function prettyBinarySize(size, fallback) {
if (!size) return fallback || 0;
if (size === -1) return 'Unlimited';
// we can also use KB here (JEDEC)
var i = Math.floor(Math.log(size) / Math.log(1024));