cpu() fixed parsing (mac OS)
This commit is contained in:
parent
73da2aef32
commit
c1545b2f22
@ -82,6 +82,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||||
|
| 5.18.5 | 2023-06-26 | `cpu()` fixed parsing (mac OS) |
|
||||||
| 5.18.4 | 2023-06-22 | `graphics()` fixed parsing (mac OS) |
|
| 5.18.4 | 2023-06-22 | `graphics()` fixed parsing (mac OS) |
|
||||||
| 5.18.3 | 2023-06-09 | `tests` improved key handling, updated docs |
|
| 5.18.3 | 2023-06-09 | `tests` improved key handling, updated docs |
|
||||||
| 5.18.2 | 2023-06-08 | `fsSize()` improved error handling (linux alpine) |
|
| 5.18.2 | 2023-06-08 | `fsSize()` improved error handling (linux alpine) |
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.18.5</th>
|
||||||
|
<td>2023-06-26</td>
|
||||||
|
<td><span class="code">cpu()</span> fix parsing amd (mac OS)</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.18.4</th>
|
<th scope="row">5.18.4</th>
|
||||||
<td>2023-06-22</td>
|
<td>2023-06-22</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png" alt="logo">
|
<img class="logo" src="assets/logo.png" alt="logo">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
<div class="version">New Version: <span id="version">5.18.4</span></div>
|
<div class="version">New Version: <span id="version">5.18.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">
|
||||||
@ -212,7 +212,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">619</div>
|
<div class="numbers">622</div>
|
||||||
<div class="title">Dependents</div>
|
<div class="title">Dependents</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -642,12 +642,16 @@ function getCpu() {
|
|||||||
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');
|
||||||
if (os.arch() === 'arm64') {
|
if (os.arch() === 'arm64') {
|
||||||
|
result.socket = 'SOC';
|
||||||
|
try {
|
||||||
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n');
|
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n');
|
||||||
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length;
|
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length;
|
||||||
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length;
|
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length;
|
||||||
result.socket = 'SOC';
|
|
||||||
result.efficiencyCores = efficiencyCores;
|
result.efficiencyCores = efficiencyCores;
|
||||||
result.performanceCores = performanceCores;
|
result.performanceCores = performanceCores;
|
||||||
|
} catch (e) {
|
||||||
|
util.noop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (countProcessors) {
|
if (countProcessors) {
|
||||||
result.processors = parseInt(countProcessors) || 1;
|
result.processors = parseInt(countProcessors) || 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user