Compare commits

...

2 Commits

Author SHA1 Message Date
D. Berge
979438d00e Change CPU load scaling 2025-08-22 19:23:31 +02:00
D. Berge
c96ada6b78 Merge branch '334-add-4d-comparisons' into 'devel'
Resolve "Add 4D comparisons"

Closes #334

See merge request wgp/dougal/software!60
2025-08-22 15:02:07 +00:00

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%
}
},