Change CPU load scaling

This commit is contained in:
D. Berge
2025-08-22 19:23:31 +02:00
parent c96ada6b78
commit 979438d00e

View File

@@ -169,7 +169,7 @@ export default {
return ((this.status.memory.total - this.status.memory.free) / this.status.memory.total) * 100;
},
loadAvgPercent() {
const maxLoad = this.status.cpus.length * 4; // Assume 4x cores as max for scaling
const maxLoad = this.status.cpus.length * 2; // Assume 4x cores as max for scaling
return Math.min((this.status.loadavg[0] / maxLoad) * 100, 100); // Cap at 100%
}
},