mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix cpu usage record
This commit is contained in:
parent
897c3cddcd
commit
41b331ab11
2 changed files with 4 additions and 2 deletions
|
@ -127,8 +127,8 @@ export default {
|
|||
this.websocket.onmessage = this.wsOnMessage
|
||||
this.websocket.onopen = this.wsOpen
|
||||
this.$api.analytic.cpu_usage().then(r => {
|
||||
this.cpu_analytic.datasets[0].data.concat(r.user)
|
||||
this.cpu_analytic.datasets[1].data.concat(r.total)
|
||||
this.cpu_analytic.datasets[0].data = this.cpu_analytic.datasets[0].data.concat(r.user)
|
||||
this.cpu_analytic.datasets[1].data = this.cpu_analytic.datasets[1].data.concat(r.total)
|
||||
})
|
||||
},
|
||||
destroyed() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue