diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a70c10..cbf4486 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) | diff --git a/docs/history.html b/docs/history.html index 52bdc55..d08f02c 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.14.1 + 2022-11-20 + mamLayout() bank descriptor cleanup (linux) + 5.14.0 2022-11-19 @@ -2839,4 +2844,4 @@ - + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 6c71760..1fd97c4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.14.0
+
New Version: 5.14.1
@@ -403,4 +403,4 @@ - + \ No newline at end of file diff --git a/lib/memory.js b/lib/memory.js index 7438aa6..f815779 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -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,