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