Skip to content

Commit 7756708

Browse files
committed
Fixes CPU check failing on certain machines with error "Divided by 0"
1 parent 0dda208 commit 7756708

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

doc/100-General/10-Changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ documentation before upgrading to a new release.
77

88
Released closed milestones can be found on [GitHub](https://github.com/Icinga/icinga-powershell-framework/milestones?state=closed).
99

10+
## 1.14.1 (2026-02-11)
11+
12+
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/43)
13+
14+
### Bugfixes
15+
16+
* [#859](https://github.com/Icinga/icinga-powershell-framework/issues/859) Fixes CPU plugin throwing an exception on certain Windows machines with `Divided by 0`
17+
1018
## 1.14.0 (2026-02-11)
1119

1220
[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/38)

lib/core/framework/New-IcingaEnvironmentVariable.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ function New-IcingaEnvironmentVariable()
103103
'FetchedServices' = $FALSE;
104104
}
105105
);
106-
$Global:Icinga.Protected.Add('CPUSockets', (Get-IcingaWindowsInformation Win32_Processor).Count);
106+
$Global:Icinga.Protected.Add('CPUSockets', ([array](Get-IcingaWindowsInformation Win32_Processor)).count);
107107
}
108108
}

0 commit comments

Comments
 (0)