diff --git a/CHANGELOG.md b/CHANGELOG.md index 22f23fc..61c1aa9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -81,7 +81,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | -| 5.13.1 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) | +| 5.13.3 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) | +| 5.13.2 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) | | 5.13.1 | 2022-11-18 | `processLoad()` fix main pid (linux) | | 5.13.0 | 2022-11-17 | `networkConnections()` addedd process name (mac OS) | | 5.12.15 | 2022-11-16 | `networkConnections()` adapted parsing to reflect also UDP (mac OS) | diff --git a/docs/history.html b/docs/history.html index 5146cc8..f592806 100644 --- a/docs/history.html +++ b/docs/history.html @@ -58,7 +58,12 @@ - 5.13.1 + 5.13.3 + 2022-11-18 + cpuTemperature() fix main temp (linux) + + + 5.13.2 2022-11-18 cpuTemperature() fix main temp (linux) diff --git a/docs/index.html b/docs/index.html index 714689c..96252e3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.13.2
+
New Version: 5.13.3
diff --git a/lib/cpu.js b/lib/cpu.js index ceb798a..2966f92 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -1044,7 +1044,7 @@ function cpuTemperature(callback) { const value = parts.length > 1 && parts[1] ? parts[1] : '0'; if (value && (label === undefined || (label && label.toLowerCase().startsWith('core')))) { result.cores.push(Math.round(parseInt(value, 10) / 100) / 10); - } else if (value && label && result.main === null && (label.toLowerCase().indexOf('package') >= 0 || label.toLowerCase().startsWith('physical') >= 0)) { + } else if (value && label && result.main === null && (label.toLowerCase().indexOf('package') >= 0 || label.toLowerCase().indexOf('physical') >= 0)) { result.main = Math.round(parseInt(value, 10) / 100) / 10; } });