修复识别运行kvm虚拟机的独服为虚拟机 (#6)

* fix distinguish kvm host as guset

* Fix spelling errors

* Update .gitignore

* update contributors[no ci]

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Crazy
2023-12-19 23:35:42 +08:00
committed by GitHub
co-authored by github-actions[bot]
parent abf3a7150b
commit 4c7faecf1b
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func GetHost(agentConfig *model.AgentConfig) *model.Host {
if err != nil {
println("host.Info error:", err)
} else {
if hi.VirtualizationSystem != "" {
if hi.VirtualizationRole == "guest" {
cpuType = "Virtual"
} else {
cpuType = "Physical"