cpu() virtualization fix (mac OS)

This commit is contained in:
Sebastian Hildebrandt 2022-08-11 18:12:24 +02:00
parent ab2f0ca14d
commit bacc87f01d
5 changed files with 11 additions and 4 deletions

View File

@ -80,6 +80,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment | | Version | Date | Comment |
| -------------- | -------------- | -------- | | -------------- | -------------- | -------- |
| 5.12.5 | 2022-08-11 | `cpu()` virtualization fix (mac OS) |
| 5.12.4 | 2022-08-09 | `cpuTemperature()` fix main (linux) | | 5.12.4 | 2022-08-09 | `cpuTemperature()` fix main (linux) |
| 5.12.3 | 2022-08-04 | `networkInterfaces()` operstate fix (mac OS) | | 5.12.3 | 2022-08-04 | `networkInterfaces()` operstate fix (mac OS) |
| 5.12.2 | 2022-08-01 | `services()` Ubuntu 22.04 fix | | 5.12.2 | 2022-08-01 | `services()` Ubuntu 22.04 fix |

View File

@ -574,12 +574,12 @@ si.cpuCurrentSpeed().then(data => console.log(data));</code></pre class="example
si.cpuTemperature().then(data => console.log(data));</code></pre class="example"> si.cpuTemperature().then(data => console.log(data));</code></pre class="example">
<pre class="example"> <pre class="example">
{ {
main: 42, main: 34,
cores: [ cores: [
34, 35, 33, 32, 34, 35, 33, 32,
37, 32, 35, 33 37, 32, 35, 33
], ],
max: 42, max: 37,
socket: [ 16.8, 27.8 ], socket: [ 16.8, 27.8 ],
chipset: 49 chipset: 49
} }

View File

@ -57,6 +57,11 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr>
<th scope="row">5.12.5</th>
<td>2022-08-11</td>
<td><span class="code">cpu()</span> virtualization fix (mac OS)</td>
</tr>
<tr> <tr>
<th scope="row">5.12.4</th> <th scope="row">5.12.4</th>
<td>2022-08-09</td> <td>2022-08-09</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png"> <img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div> <div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div> <div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.12.4</span></div> <div class="version">New Version: <span id="version">5.12.5</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button> <button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div> </div>
<div class="down"> <div class="down">
@ -214,7 +214,7 @@
<div class="title">Downloads last month</div> <div class="title">Downloads last month</div>
</div> </div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12"> <div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">557</div> <div class="numbers">558</div>
<div class="title">Dependents</div> <div class="title">Dependents</div>
</div> </div>
</div> </div>

View File

@ -645,6 +645,7 @@ function getCpu() {
result.family = util.getValue(lines, 'machdep.cpu.family') || util.getValue(lines, 'hw.cpufamily'); result.family = util.getValue(lines, 'machdep.cpu.family') || util.getValue(lines, 'hw.cpufamily');
result.model = util.getValue(lines, 'machdep.cpu.model'); result.model = util.getValue(lines, 'machdep.cpu.model');
result.stepping = util.getValue(lines, 'machdep.cpu.stepping') || util.getValue(lines, 'hw.cpusubfamily'); result.stepping = util.getValue(lines, 'machdep.cpu.stepping') || util.getValue(lines, 'hw.cpusubfamily');
result.virtualization = true;
const countProcessors = util.getValue(lines, 'hw.packages'); const countProcessors = util.getValue(lines, 'hw.packages');
const countCores = util.getValue(lines, 'hw.physicalcpu_max'); const countCores = util.getValue(lines, 'hw.physicalcpu_max');
const countThreads = util.getValue(lines, 'hw.ncpu'); const countThreads = util.getValue(lines, 'hw.ncpu');