mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 05:37:07 +00:00
Change CPU load scaling
This commit is contained in:
@@ -169,7 +169,7 @@ export default {
|
|||||||
return ((this.status.memory.total - this.status.memory.free) / this.status.memory.total) * 100;
|
return ((this.status.memory.total - this.status.memory.free) / this.status.memory.total) * 100;
|
||||||
},
|
},
|
||||||
loadAvgPercent() {
|
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%
|
return Math.min((this.status.loadavg[0] / maxLoad) * 100, 100); // Cap at 100%
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user