Handle unlimited memory in app view
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user