Closed araoko closed 3 years ago
Thank you for the report! I found WMI require _
in a struct like win32_Processor
. It will be fixed by #983. Could you check it on your local?
Thank you for the report! I found WMI require
_
in a struct likewin32_Processor
. It will be fixed by #983. Could you check it on your local?
Yes its win32Processor
in v3, I just didn't expect the struct name to cause the error since the compiler did not complain
github.com/StackEchange/wmi uses reflection at runtime to get struct names to infer the wmi types used in queries, the compiler didn't complain as the types were OK from its point of view at compile time.
Describe the bug calling the cpu.Info function when the imported package is "github.com/shirou/gopsutil/v3/cpu" returns "Exception occurred. (Invalid class )" error while it worked with package "github.com/shirou/gopsutil/cpu". I have looked into the source code (common_wimndows.go, cpu_windows.go) for both packages but cannot find any difference in those files that could cause the error on v3.
To Reproduce
Environment (please complete the following information): Microsoft Windows [Version 10.0.18363.1139] 64bit CPU Model: Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz