Skip to content

Commit

Permalink
Remove shit
Browse files Browse the repository at this point in the history
  • Loading branch information
dysf888 authored Dec 20, 2024
1 parent 8cbddbe commit 1075c3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1075c3c

Please sign in to comment.