[CMII] [Operator] accomplish - 1
This commit is contained in:
@@ -44,6 +44,7 @@ func GetCPUMetric() (*CPUMetric, error) {
|
||||
}
|
||||
|
||||
func GetCPUInfo() (*CPUInfo, error) {
|
||||
|
||||
numCores, err := cpu.Counts(true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package status
|
||||
|
||||
import (
|
||||
"agent-go/utils"
|
||||
"github.com/shirou/gopsutil/v3/docker"
|
||||
"strings"
|
||||
"wdd.io/agent-go/utils"
|
||||
)
|
||||
|
||||
type DockerMetric struct {
|
||||
|
||||
Reference in New Issue
Block a user