From 121bfdad43380abf1d43f1cccc9ba036311e15de Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 15 Aug 2021 13:45:32 +0200 Subject: [PATCH] fix(core): update --- ts/smartmetrics.classes.smartmetrics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/smartmetrics.classes.smartmetrics.ts b/ts/smartmetrics.classes.smartmetrics.ts index ae21c34..9fe69b6 100644 --- a/ts/smartmetrics.classes.smartmetrics.ts +++ b/ts/smartmetrics.classes.smartmetrics.ts @@ -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} `);