in src/app/utils/common.util.ts [33:42]
static formatMemory(value: number | string): string {
const units: readonly string[] = ['KB', 'MB', 'GB', 'TB', 'PB'];
var unit: string = 'bytes';
let toValue = +value
for (var i: number = 0, unitslen = units.length; toValue / 1000 >= 1 && i < unitslen;i = i + 1) {
toValue = toValue / 1000;
unit = units[i];
}
return `${toValue.toFixed(1)} ${unit}`;
}