fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-15 13:45:32 +02:00
parent f96ed80be0
commit 121bfdad43

View File

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