[agent-go] [status] - update code

This commit is contained in:
zeaslity
2023-06-13 11:16:50 +08:00
parent 42b7b6e511
commit 2ea1d7cd4d
7 changed files with 59 additions and 137 deletions

View File

@@ -8,6 +8,6 @@ func TestReadTimeOutput(t *testing.T) {
"/root/simple.sh",
}
ReadTimeOutput(strings)
ReadTimeCommandExecutor(strings)
}

View File

@@ -4,7 +4,6 @@ import (
"agent-go/g"
logger2 "agent-go/logger"
"agent-go/register"
"agent-go/status"
"flag"
"fmt"
)
@@ -13,14 +12,6 @@ var log = logger2.Log
func main() {
// 测试调用CPU状态
getCpuMap, err := status.GetCpuMap()
if err != nil {
log.ErrorF("error is %v", err)
}
log.InfoF("cpu status is %v", getCpuMap)
// 解析命令行参数
var version string
flag.StringVar(&version, "version", "", "config file version")