fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-14 21:31:49 +02:00
parent e43b89f51d
commit 22b181a7a0

View File

@ -68,7 +68,7 @@ export class SmartMetrics {
if (!stats[stat]) continue; if (!stats[stat]) continue;
memoryUsageBytes += stats[stat].memory; memoryUsageBytes += stats[stat].memory;
} }
let memoryUsageText = this.formatBytes(memoryUsageBytes); let memoryUsageText = `${this.formatBytes(memoryUsageBytes)} / ${this.formatBytes(plugins.os.totalmem())}`;
let memoryPercentage = Math.round((memoryUsageBytes / plugins.os.totalmem()) * 100) / 100; let memoryPercentage = Math.round((memoryUsageBytes / plugins.os.totalmem()) * 100) / 100;
const returnMetrics: interfaces.IMetricsSnapshot = { const returnMetrics: interfaces.IMetricsSnapshot = {