mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:07:08 +00:00
Compare commits
1 Commits
v2025.34.1
...
979438d00e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
979438d00e |
@@ -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