add cpu and memery total info

This commit is contained in:
liuzhihang1
2025-02-25 15:05:38 +08:00
parent 0f41d11aec
commit 4f96d04f88
10 changed files with 25 additions and 9 deletions

View File

@@ -16,9 +16,11 @@ type ProcessInfo struct {
}
type Usage struct {
Cpu []float64 `json:"cpu"`
Mem []float64 `json:"mem"`
Time []string `json:"time"`
CpuCapacity float64 `json:"cpuCapacity"`
MemCapacity float64 `json:"memCapacity"`
Cpu []float64 `json:"cpu"`
Mem []float64 `json:"mem"`
Time []string `json:"time"`
}
type State struct {