fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-14 21:42:25 +02:00
parent 9822d470e3
commit 25de5d5874

View File

@ -68,8 +68,8 @@ export class SmartMetrics {
if (!stats[stat]) continue;
memoryUsageBytes += stats[stat].memory;
}
let memoryUsageText = `${this.formatBytes(memoryUsageBytes)} / ${this.formatBytes(1000000000)}`;
let memoryPercentage = Math.round((memoryUsageBytes / 1000000000) * 100) / 100;
let memoryUsageText = `${memoryPercentage * 100}% | ${this.formatBytes(memoryUsageBytes)} / ${this.formatBytes(1000000000)}`;
console.log(`${cpuUsageText} ||| ${memoryUsageText} `);