memLayout() bank info fix macOS

This commit is contained in:
Sebastian Hildebrandt
2020-01-24 22:55:55 +01:00
parent b064399673
commit fe63c18d9b
4 changed files with 10 additions and 3 deletions
+3 -2
View File
@@ -38,7 +38,8 @@ const OSX_RAM_manufacturers = {
'0x02FE': 'Elpida',
'0x5105': 'Qimonda AG i. In.',
'0x8551': 'Qimonda AG i. In.',
'0x859B': 'Crucial'
'0x859B': 'Crucial',
'0x04CD': 'G-Skill'
};
// _______________________________________________________________________________________
@@ -330,7 +331,7 @@ function memLayout(callback) {
devices.shift();
devices.forEach(function (device) {
let lines = device.split('\n');
const bank = (hasBank ? 'BANK ' : 'DIMM') + lines[0].trim();
const bank = (hasBank ? 'BANK ' : 'DIMM') + lines[0].trim().split('/')[0];
const size = parseInt(util.getValue(lines, ' Size'));
if (size) {
result.push({