mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
use goroutine to record cpu usage
This commit is contained in:
parent
16a3d02d9c
commit
897c3cddcd
7 changed files with 134 additions and 63 deletions
9
frontend/src/api/analytic.js
Normal file
9
frontend/src/api/analytic.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/lib/http'
|
||||
|
||||
const analytic = {
|
||||
cpu_usage() {
|
||||
return http.get('/analytic/cpu')
|
||||
}
|
||||
}
|
||||
|
||||
export default analytic
|
Loading…
Add table
Add a link
Reference in a new issue