From 1075c3c6e11451834c98248e4556e23f17c87f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=91=E6=AD=8C?= <47450409+dysf888@users.noreply.github.com> Date: Fri, 20 Dec 2024 22:47:28 +0800 Subject: [PATCH] Remove shit --- pkg/monitor/monitor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/monitor/monitor.go b/pkg/monitor/monitor.go index 78bcf895..605879c2 100644 --- a/pkg/monitor/monitor.go +++ b/pkg/monitor/monitor.go @@ -72,16 +72,16 @@ func InitConfig(cfg *model.AgentConfig) { func GetHost() *model.Host { var ret model.Host - // var cpuType string + var cpuType string hi, err := host.Info() if err != nil { printf("host.Info error: %v", err) } else { if hi.VirtualizationRole == "guest" { - //cpuType = "Virtual" + cpuType = "Virtual" ret.Virtualization = hi.VirtualizationSystem } else { - //cpuType = "Physical" + cpuType = "Physical" ret.Virtualization = "" } //ret.Platform = hi.Platform