system() Raspberry Pi 5 name fix

This commit is contained in:
Sebastian Hildebrandt 2023-11-11 21:45:39 +01:00
parent bbc2cad8b2
commit 4cb41e7d1e
4 changed files with 9 additions and 3 deletions

View File

@ -83,6 +83,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| 5.21.17 | 2023-11-09 | `system()` Raspberry Pi 5 name fix |
| 5.21.16 | 2023-11-09 | `currentLoad()` improved parsing (linux) |
| 5.21.15 | 2023-10-27 | `wifiConnections()` improved parsing (linux) |
| 5.21.14 | 2023-10-26 | `execSync()` added explicit encoding (linux) |

View File

@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.21.17</th>
<td>2023-11-11</td>
<td><span class="code">system()</span> Raspberry Pi 5 name fix</td>
</tr>
<tr>
<th scope="row">5.21.16</th>
<td>2023-11-09</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.21.16</span></div>
<div class="version">New Version: <span id="version">5.21.17</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

@ -993,7 +993,7 @@ function decodePiCpuinfo(lines) {
'13': '400',
'14': 'CM4',
'15': 'CM4S',
'17': '5B',
'17': '5',
};
const revisionCode = getValue(lines, 'revision', ':', true);
@ -1052,7 +1052,7 @@ function getRpiGpu() {
const rpi = decodePiCpuinfo(cpuinfo);
if (rpi.type === '4B' || rpi.type === 'CM4' || rpi.type === 'CM4S' || rpi.type === '400') { return 'VideoCore VI'; }
if (rpi.type === '5B') { return 'VideoCore VII'; }
if (rpi.type === '5') { return 'VideoCore VII'; }
return 'VideoCore IV';
}