Skip to content

Commit 68bd82d

Browse files
Update WmiCpu.cpp
Missed a merge issue with the change from kProcessTime to KProcessorIdleTime
1 parent 30f6137 commit 68bd82d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

IntelPresentMon/ControlLib/WmiCpu.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ WmiCpu::WmiCpu() {
4242
.c_str()};
4343
}
4444

45-
if (const auto result = PdhAddEnglishCounterW(
46-
query_.get(), kProcessorTime.c_str(), 0,
47-
&processor_time_counter_);
45+
if (const auto result = PdhAddEnglishCounterW(query_.get(), kProcessorIdleTime.c_str(), 0,
46+
&processor_idle_time_counter_);
4847
result != ERROR_SUCCESS) {
4948
throw std::runtime_error{
5049
std::format("PdhAddEnglishCounter failed when adding "

0 commit comments

Comments
 (0)