Skip to content

Commit

Permalink
Fixed a bug with the localized process counters.
Browse files Browse the repository at this point in the history
  • Loading branch information
sp00n committed Mar 16, 2021
1 parent c496186 commit ba16174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script-corecycler.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.AUTHOR
sp00n
.VERSION
0.7.9.0
0.7.9.1
.DESCRIPTION
Sets the affinity of the Prime95 process to only one core and cycles through all the cores
to test the stability of a Curve Optimizer setting
Expand All @@ -17,7 +17,7 @@
#>

# Global variables
$version = '0.7.9.0'
$version = '0.7.9.1'
$curDateTime = Get-Date -format yyyy-MM-dd_HH-mm-ss
$settings = $null
$logFilePath = $null
Expand Down Expand Up @@ -235,7 +235,7 @@ function Get-PerformanceCounterIDs {
$counterId = [Int]$allCounters[$i]
$counterName = [String]$allCounters[$i+1]

if ($englishCounterNames.Contains($counterName)) {
if ($englishCounterNames.Contains($counterName) -and !$countersHash.ContainsKey($counterName)) {
$countersHash[$counterName] = $counterId
}

Expand Down

0 comments on commit ba16174

Please sign in to comment.