You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
type Win32_Processor struct {
LoadPercentage uint16
L2CacheSize uint32
Family uint16
Manufacturer string
Name string
NumberOfLogicalProcessors uint32
ProcessorId string
Stepping *string
MaxClockSpeed uint32
}
....
var dst []Win32_Processor
q := wmi.CreateQuery(&dst, "")
err := wmi.Query(q, &dst)
fmt.Println(err)
And when this script is called too often (~26 iteration) I get error: wmi cannot load field "loadpercentage" into a "uint16" unsupported type (<nil>)
Could you please help, why I get this error?
I use GoLang 1.16, Windows 10(64)
The text was updated successfully, but these errors were encountered:
I have a script with next part:
And when this script is called too often (~26 iteration) I get error:
wmi cannot load field "loadpercentage" into a "uint16" unsupported type (<nil>)
Could you please help, why I get this error?
I use GoLang 1.16, Windows 10(64)
The text was updated successfully, but these errors were encountered: