Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
cpu speed update for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
mq1n committed Jun 28, 2021
1 parent d33d4c7 commit aa20186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ int main(int, char* argv[])
for (size_t i = 0; i < sysInfo.dwNumberOfProcessors; ++i)
{
const auto lpCurrProcessorInfo = *(reinterpret_cast<PROCESSOR_POWER_INFORMATION*>(reinterpret_cast<LPBYTE>(lpBuffer) + (sizeof(processorPowerInfo) * i)));
std::cout << "\tProcessor: " << lpCurrProcessorInfo.Number + 1 << " Speed: " << lpCurrProcessorInfo.CurrentMhz << std::endl;
if (lpCurrProcessorInfo.CurrentMhz >= 1000)
std::cout << "\tProcessor: " << lpCurrProcessorInfo.Number + 1 << " Speed: " << lpCurrProcessorInfo.MaxMhz << std::endl;
if (lpCurrProcessorInfo.MaxMhz >= 1000)
{
nSpeedCheckCounter++;
}
Expand Down

0 comments on commit aa20186

Please sign in to comment.