fix(core): update
This commit is contained in:
parent
9822d470e3
commit
25de5d5874
@ -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} `);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user