memLayout() bank info fix macOS
This commit is contained in:
+3
-2
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user