Skip to content

Commit

Permalink
Merge pull request #2260 from microsoft/Nickul-HCUpdateCounters
Browse files Browse the repository at this point in the history
Missing counter added to be displayed when not found
  • Loading branch information
dpaulson45 authored Dec 16, 2024
2 parents 6168f71 + 512157b commit 97539e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function Invoke-AnalyzerHardwareInformation {
$counter = $osInformation.PerformanceCounters | Where-Object { $_.OriginalCounterLookup -eq $counterName }

if ($null -eq $counter) {
$params.Details = "Unknown - Required Counter Not Loaded"
$params.Details = "Unknown - Required Counter Not Loaded. Missing Counter: $($counterName)"
$params.DisplayWriteType = "Yellow"
} elseif (($counter.CookedValue / 1024) -ne $totalPhysicalMemory -and
($counter.CookedValue / 1024) -ne $totalPhysicalMemoryNotRounded) {
Expand Down

0 comments on commit 97539e9

Please sign in to comment.