add install.sh

This commit is contained in:
0xJacky 2022-02-19 23:55:05 +08:00
parent 4aefecee2e
commit 2b3db0387d
9 changed files with 205 additions and 11 deletions

View file

@ -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()
}

View file

@ -1,5 +1 @@
{
"version": "1.1.0",
"build_id": 8,
"total_build": 25
}
{"version":"1.1.0","build_id":9,"total_build":26}