From ba16174d086a023f4ec1df6e3f571d0aabc25193 Mon Sep 17 00:00:00 2001 From: sp00n Date: Tue, 16 Mar 2021 23:32:15 +0100 Subject: [PATCH] Fixed a bug with the localized process counters. --- script-corecycler.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script-corecycler.ps1 b/script-corecycler.ps1 index 01479cd..baf4a1e 100644 --- a/script-corecycler.ps1 +++ b/script-corecycler.ps1 @@ -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 @@ -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 @@ -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 }