Skip to content

Commit d9ba095

Browse files
committed
Fixes CPU and other performance data metrics to report proper values
1 parent a733ed6 commit d9ba095

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

doc/100-General/10-Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1414
### Bugfixes
1515

1616
* [#752](https://github.com/Icinga/icinga-powershell-framework/pull/752) Fixes an exception for the windowseventlog feature of the Icinga Agent, in case it is not installed.
17+
* [#755](https://github.com/Icinga/icinga-powershell-framework/pull/755) Fixes CPU and other performance data metrics to report proper values
1718

1819
### Enhancements
1920

lib/core/perfcounter/New-IcingaPerformanceCounterArray.psm1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ function New-IcingaPerformanceCounterArray()
4242
# pre-caching / configuration handler
4343
$CachedCounter = Get-IcingaPerformanceCounterCacheItem -Counter $Counter;
4444

45-
if ($null -ne $CachedCounter) {
46-
$RequireSleep = $FALSE;
47-
}
45+
# Remove this for now to ensure our CPU metrics will not be cached
46+
# and represent correct values, not exceeding 200% and beyond
47+
#if ($null -ne $CachedCounter) {
48+
# $RequireSleep = $FALSE;
49+
#}
4850

4951
$obj = New-IcingaPerformanceCounter -Counter $counter -SkipWait $TRUE;
5052
if ($CounterResult.ContainsKey($obj.Name()) -eq $FALSE) {

0 commit comments

Comments
 (0)