handle unknown gpu

This commit is contained in:
wh1te909 2022-04-01 06:36:08 +00:00
parent 7509389cfc
commit 6409f214a7

View File

@ -393,6 +393,9 @@ func (a *Agent) GetWMIInfo() map[string]interface{} {
if makeModel != "" && (wmiInfo["make_model"] == "" || wmiInfo["make_model"] == "unknown unknown") { if makeModel != "" && (wmiInfo["make_model"] == "" || wmiInfo["make_model"] == "unknown unknown") {
wmiInfo["make_model"] = makeModel wmiInfo["make_model"] = makeModel
} }
if len(gpus) == 1 && gpus[0] == "unknown unknown" {
wmiInfo["gpus"] = ""
}
return wmiInfo return wmiInfo
} }