memLayout() bank descriptot cleanup
This commit is contained in:
parent
2cfd24e6e7
commit
6e7e6d5d04
@ -81,7 +81,8 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||
| 5.14.0 | 2022-11-10 | `blockDevices()` added raid group member (linux) |
|
||||
| 5.14.1 | 2022-11-20 | `memLayout()` bank descriptor cleanup (linux) |
|
||||
| 5.14.0 | 2022-11-19 | `blockDevices()` added raid group member (linux) |
|
||||
| 5.13.5 | 2022-11-18 | `users()` fix parsing issue (windows) |
|
||||
| 5.13.4 | 2022-11-18 | `users()` fix Get-CimInstance issue (windows) |
|
||||
| 5.13.3 | 2022-11-18 | `cpuTemperature()` fix main temp (linux) |
|
||||
|
||||
@ -57,6 +57,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.14.1</th>
|
||||
<td>2022-11-20</td>
|
||||
<td><span class="code">mamLayout()</span> bank descriptor cleanup (linux)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.14.0</th>
|
||||
<td>2022-11-19</td>
|
||||
@ -2839,4 +2844,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@ -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.14.0</span></div>
|
||||
<div class="version">New Version: <span id="version">5.14.1</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">
|
||||
@ -403,4 +403,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@ -323,12 +323,16 @@ function memLayout(callback) {
|
||||
let lines = device.split('\n');
|
||||
const sizeString = util.getValue(lines, 'Size');
|
||||
const size = sizeString.indexOf('GB') >= 0 ? parseInt(sizeString, 10) * 1024 * 1024 * 1024 : parseInt(sizeString, 10) * 1024 * 1024;
|
||||
let bank = util.getValue(lines, 'Bank Locator');
|
||||
if (bank.toLowerCase().indexOf('bad') >= 0) {
|
||||
bank = '';
|
||||
}
|
||||
if (parseInt(util.getValue(lines, 'Size'), 10) > 0) {
|
||||
const totalWidth = util.toInt(util.getValue(lines, 'Total Width'));
|
||||
const dataWidth = util.toInt(util.getValue(lines, 'Data Width'));
|
||||
result.push({
|
||||
size,
|
||||
bank: util.getValue(lines, 'Bank Locator'),
|
||||
bank,
|
||||
type: util.getValue(lines, 'Type:'),
|
||||
ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false,
|
||||
clockSpeed: (util.getValue(lines, 'Configured Clock Speed:') ? parseInt(util.getValue(lines, 'Configured Clock Speed:'), 10) : (util.getValue(lines, 'Speed:') ? parseInt(util.getValue(lines, 'Speed:'), 10) : null)),
|
||||
@ -343,7 +347,7 @@ function memLayout(callback) {
|
||||
} else {
|
||||
result.push({
|
||||
size: 0,
|
||||
bank: util.getValue(lines, 'Bank Locator'),
|
||||
bank,
|
||||
type: 'Empty',
|
||||
ecc: null,
|
||||
clockSpeed: 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user