osInfo() fix manufacturer Apple Silicon (macOS)
This commit is contained in:
parent
a6317311c5
commit
c114c51ea5
@ -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 |
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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> </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">
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user