Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kuramochia authored Aug 19, 2024
1 parent 82c70b4 commit 1fe4068
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Windows/CpuUsageHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ int CpuUsageHelper::GetCurrentCPUValue()

PdhCollectQueryData(mCpuQuery);
PdhGetFormattedCounterValue(mCpuTotal, PDH_FMT_LONG, NULL, &counterVal);
int result = (int)(MIN(counterVal.longValue, (LONG)100));
return result;
return (int)(MIN(counterVal.longValue, 100L));
}

0 comments on commit 1fe4068

Please sign in to comment.