lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
438 stars 76 forks source link

Fix cache size calculation on windows #23

Closed omnibench closed 1 year ago

omnibench commented 1 year ago

According to https://powershell.one/wmi/root/cimv2/win32_processor the cache size returned by WMI is in kilobytes.

I verified on my system that the outputted cache size is wrong by a factor of 1024.

Output before: cache size: 25344 Output after: cache size: 25952256