osInfo() fix manufacturer Apple Silicon (macOS)

This commit is contained in:
Sebastian Hildebrandt 2024-12-25 08:35:25 +01:00
parent a6317311c5
commit c114c51ea5
6 changed files with 13 additions and 6 deletions

View File

@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.23.22 | 2024-12-25 | `osInfo()` fix manufacturer Apple Silicon (macOS) |
| 5.23.21 | 2024-12-24 | `osInfo()` fix fqdn |
| 5.23.20 | 2024-12-24 | `cpu()` fix timeout |
| 5.23.19 | 2024-12-24 | `cpu()` refactored using internal node functions |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.23.22</th>
<td>2024-12-25</td>
<td><span class="code">memLayout()</span> fix manufacturer Apple Silicon (macOS)</td>
</tr>
<tr>
<th scope="row">5.23.21</th>
<td>2024-12-24</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.23.21</span></div>
<div class="version">New Version: <span id="version">5.23.22</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>
</div>
<div class="down">

View File

@ -498,15 +498,16 @@ function memLayout(callback) {
const lines = stdout.toString().split('\n');
const size = parseInt(util.getValue(lines, ' Memory:'));
const type = util.getValue(lines, ' Type:');
const manufacturerId = util.getValue(lines, ' Manufacturer:');
if (size && type) {
result.push({
size: size * 1024 * 1024 * 1024,
bank: '0',
type,
ecc: false,
clockSpeed: 0,
formFactor: '',
manufacturer: 'Apple',
clockSpeed: null,
formFactor: 'SOC',
manufacturer: getManufacturerDarwin(manufacturerId),
partNum: '',
serialNum: '',
voltageConfigured: null,

View File

@ -403,7 +403,7 @@ function getWindowsIEEE8021x(connectionType, iface, ifaces) {
let ifaceSanitized = '';
const s = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(SSID);
const l = util.mathMin(s.length, 2000);
const l = util.mathMin(s.length, 32);
for (let i = 0; i <= l; i++) {
if (s[i] !== undefined) {

View File

@ -612,7 +612,7 @@ function wifiConnections(callback) {
const network = networkList.filter(nw => nw.ssid === ssid);
let ssidSanitized = '';
const t = util.isPrototypePolluted() ? '---' : util.sanitizeShellString(ssid, true);
const l = util.mathMin(t.length, 2000);
const l = util.mathMin(t.length, 32);
for (let i = 0; i <= l; i++) {
if (t[i] !== undefined) {
ssidSanitized = ssidSanitized + t[i];