mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
add install.sh
This commit is contained in:
parent
4aefecee2e
commit
2b3db0387d
9 changed files with 205 additions and 11 deletions
|
@ -121,9 +121,9 @@ export default {
|
|||
this.websocket.onmessage = this.wsOnMessage
|
||||
this.websocket.onopen = this.wsOpen
|
||||
const time = new Date()
|
||||
for (let i = 0; i < 120; i++) {
|
||||
this.cpu_analytic.datasets[0].data.push({x: time, y: 0})
|
||||
this.cpu_analytic.datasets[1].data.push({x: time, y: 0})
|
||||
for (let i = 200; i > 0; i--) {
|
||||
this.cpu_analytic.datasets[0].data.push({x: time-i*1000, y: 0})
|
||||
this.cpu_analytic.datasets[1].data.push({x: time-i*1000, y: 0})
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
|
@ -142,7 +142,7 @@ export default {
|
|||
.push({x: time, y: r.cpu_user})
|
||||
this.cpu_analytic.datasets[1].data
|
||||
.push({x: time, y: this.cpu})
|
||||
if (this.cpu_analytic.datasets[0].data.length > 120) {
|
||||
if (this.cpu_analytic.datasets[0].data.length > 200) {
|
||||
this.cpu_analytic.datasets[0].data.shift()
|
||||
this.cpu_analytic.datasets[1].data.shift()
|
||||
}
|
||||
|
|
|
@ -1,5 +1 @@
|
|||
{
|
||||
"version": "1.1.0",
|
||||
"build_id": 8,
|
||||
"total_build": 25
|
||||
}
|
||||
{"version":"1.1.0","build_id":9,"total_build":26}
|
Loading…
Add table
Add a link
Reference in a new issue