diff --git a/CHANGELOG.md b/CHANGELOG.md
index 01d3628..d3d18e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
+| 5.11.7 | 2022-03-10 | `cpuTemperature()` fi NaN issue (windows) |
| 5.11.6 | 2022-03-01 | typescript typings fix `diskLayout()` |
| 5.11.5 | 2022-02-26 | fixed parsing issues (windows) |
| 5.11.4 | 2022-02-20 | `powerShell` execution policy fix (windows) |
diff --git a/docs/history.html b/docs/history.html
index ccbf9f6..d68f062 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -57,6 +57,11 @@
+
+ | 5.11.7 |
+ 2022-03-10 |
+ cpuTemperature() fix NaN issue (windows) |
+
| 5.11.6 |
2022-03-01 |
diff --git a/docs/index.html b/docs/index.html
index cdfda8a..fa46eaa 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.11.6
+ New Version: 5.11.7
diff --git a/lib/cpu.js b/lib/cpu.js
index a513df0..423f0e4 100644
--- a/lib/cpu.js
+++ b/lib/cpu.js
@@ -1192,9 +1192,11 @@ function cpuTemperature(callback) {
let lines = stdout.split('\r\n').filter(line => line.trim() !== '').filter((line, idx) => idx > 0);
lines.forEach(function (line) {
let value = (parseInt(line, 10) - 2732) / 10;
- sum = sum + value;
- if (value > result.max) { result.max = value; }
- result.cores.push(value);
+ if (!isNaN(value)) {
+ sum = sum + value;
+ if (value > result.max) { result.max = value; }
+ result.cores.push(value);
+ }
});
if (result.cores.length) {
result.main = sum / result.cores.length;