memLayout() manufacturers reference updated
This commit is contained in:
parent
7d260f3c6b
commit
b4fb27c496
@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
|
||||||
|
| 5.26.2 | 2025-05-23 | `memLayout()` manufacturers reference updated |
|
||||||
| 5.26.1 | 2025-05-22 | `inetChecksite()` fix timeout |
|
| 5.26.1 | 2025-05-22 | `inetChecksite()` fix timeout |
|
||||||
| 5.26.0 | 2025-05-21 | `getStatic()` added audio, usb, bluetooth, printer |
|
| 5.26.0 | 2025-05-21 | `getStatic()` added audio, usb, bluetooth, printer |
|
||||||
| 5.25.11 | 2025-01-11 | `docs` updated |
|
| 5.25.11 | 2025-01-11 | `docs` updated |
|
||||||
|
|||||||
@ -57,6 +57,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">5.26.2</th>
|
||||||
|
<td>2024-05-23</td>
|
||||||
|
<td><span class="code">memLayout()</span> manufacturer reference updated</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">5.26.1</th>
|
<th scope="row">5.26.1</th>
|
||||||
<td>2024-05-22</td>
|
<td>2024-05-22</td>
|
||||||
|
|||||||
@ -170,7 +170,7 @@
|
|||||||
<img class="logo" src="assets/logo.png" alt="logo">
|
<img class="logo" src="assets/logo.png" alt="logo">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span> </div>
|
<div class="subtitle"><span id="typed"></span> </div>
|
||||||
3<div class="version">New Version: <span id="version">5.26.1</span></div>
|
3<div class="version">New Version: <span id="version">5.26.2</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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -29,41 +29,26 @@ const _openbsd = (_platform === 'openbsd');
|
|||||||
const _netbsd = (_platform === 'netbsd');
|
const _netbsd = (_platform === 'netbsd');
|
||||||
const _sunos = (_platform === 'sunos');
|
const _sunos = (_platform === 'sunos');
|
||||||
|
|
||||||
const OSX_RAM_manufacturers = {
|
const RAM_manufacturers = {
|
||||||
'0x014F': 'Transcend Information',
|
'00CE': 'Samsung Electronics Inc',
|
||||||
'0x2C00': 'Micron Technology Inc.',
|
'014F': 'Transcend Information',
|
||||||
'0x802C': 'Micron Technology Inc.',
|
'017A': 'Apacer Technology Inc',
|
||||||
'0x80AD': 'Hynix Semiconductor Inc.',
|
|
||||||
'0x80CE': 'Samsung Electronics Inc.',
|
|
||||||
'0xAD00': 'Hynix Semiconductor Inc.',
|
|
||||||
'0xCE00': 'Samsung Electronics Inc.',
|
|
||||||
'0x02FE': 'Elpida',
|
|
||||||
'0x5105': 'Qimonda AG i. In.',
|
|
||||||
'0x8551': 'Qimonda AG i. In.',
|
|
||||||
'0x859B': 'Crucial',
|
|
||||||
'0x04CD': 'G-Skill'
|
|
||||||
};
|
|
||||||
|
|
||||||
const LINUX_RAM_manufacturers = {
|
|
||||||
'017A': 'Apacer',
|
|
||||||
'0198': 'HyperX',
|
'0198': 'HyperX',
|
||||||
'029E': 'Corsair',
|
'029E': 'Corsair',
|
||||||
|
'02FE': 'Elpida',
|
||||||
'04CB': 'A-DATA',
|
'04CB': 'A-DATA',
|
||||||
'04CD': 'G-Skill',
|
'04CD': 'G-Skill International Enterprise',
|
||||||
'059B': 'Crucial',
|
'059B': 'Crucial',
|
||||||
'00CE': 'Samsung',
|
|
||||||
'1315': 'Crucial',
|
'1315': 'Crucial',
|
||||||
'014F': 'Transcend Information',
|
|
||||||
'2C00': 'Micron Technology Inc.',
|
'2C00': 'Micron Technology Inc.',
|
||||||
|
'5105': 'Qimonda AG i. In.',
|
||||||
'802C': 'Micron Technology Inc.',
|
'802C': 'Micron Technology Inc.',
|
||||||
'80AD': 'Hynix Semiconductor Inc.',
|
'80AD': 'Hynix Semiconductor Inc.',
|
||||||
'80CE': 'Samsung Electronics Inc.',
|
'80CE': 'Samsung Electronics Inc.',
|
||||||
|
'8551': 'Qimonda AG i. In.',
|
||||||
|
'859B': 'Crucial',
|
||||||
'AD00': 'Hynix Semiconductor Inc.',
|
'AD00': 'Hynix Semiconductor Inc.',
|
||||||
'CE00': 'Samsung Electronics Inc.',
|
'CE00': 'Samsung Electronics Inc.',
|
||||||
'02FE': 'Elpida',
|
|
||||||
'5105': 'Qimonda AG i. In.',
|
|
||||||
'8551': 'Qimonda AG i. In.',
|
|
||||||
'859B': 'Crucial'
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// _______________________________________________________________________________________
|
// _______________________________________________________________________________________
|
||||||
@ -315,17 +300,10 @@ exports.mem = mem;
|
|||||||
|
|
||||||
function memLayout(callback) {
|
function memLayout(callback) {
|
||||||
|
|
||||||
function getManufacturerDarwin(manId) {
|
function getManufacturer(manId) {
|
||||||
if ({}.hasOwnProperty.call(OSX_RAM_manufacturers, manId)) {
|
|
||||||
return (OSX_RAM_manufacturers[manId]);
|
|
||||||
}
|
|
||||||
return manId;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getManufacturerLinux(manId) {
|
|
||||||
const manIdSearch = manId.replace('0x', '').toUpperCase();
|
const manIdSearch = manId.replace('0x', '').toUpperCase();
|
||||||
if (manIdSearch.length === 4 && {}.hasOwnProperty.call(LINUX_RAM_manufacturers, manIdSearch)) {
|
if (manIdSearch.length === 4 && {}.hasOwnProperty.call(RAM_manufacturers, manIdSearch)) {
|
||||||
return (LINUX_RAM_manufacturers[manIdSearch]);
|
return (RAM_manufacturers[manIdSearch]);
|
||||||
}
|
}
|
||||||
return manId;
|
return manId;
|
||||||
}
|
}
|
||||||
@ -358,7 +336,7 @@ function memLayout(callback) {
|
|||||||
ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false,
|
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)),
|
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)),
|
||||||
formFactor: util.getValue(lines, 'Form Factor:'),
|
formFactor: util.getValue(lines, 'Form Factor:'),
|
||||||
manufacturer: getManufacturerLinux(util.getValue(lines, 'Manufacturer:')),
|
manufacturer: getManufacturer(util.getValue(lines, 'Manufacturer:')),
|
||||||
partNum: util.getValue(lines, 'Part Number:'),
|
partNum: util.getValue(lines, 'Part Number:'),
|
||||||
serialNum: util.getValue(lines, 'Serial Number:'),
|
serialNum: util.getValue(lines, 'Serial Number:'),
|
||||||
voltageConfigured: parseFloat(util.getValue(lines, 'Configured Voltage:')) || null,
|
voltageConfigured: parseFloat(util.getValue(lines, 'Configured Voltage:')) || null,
|
||||||
@ -470,7 +448,7 @@ function memLayout(callback) {
|
|||||||
ecc: eccStatus ? eccStatus === 'enabled' : null,
|
ecc: eccStatus ? eccStatus === 'enabled' : null,
|
||||||
clockSpeed: parseInt(util.getValue(lines, ' Speed:'), 10),
|
clockSpeed: parseInt(util.getValue(lines, ' Speed:'), 10),
|
||||||
formFactor: '',
|
formFactor: '',
|
||||||
manufacturer: getManufacturerDarwin(util.getValue(lines, ' Manufacturer:')),
|
manufacturer: getManufacturer(util.getValue(lines, ' Manufacturer:')),
|
||||||
partNum: util.getValue(lines, ' Part Number:'),
|
partNum: util.getValue(lines, ' Part Number:'),
|
||||||
serialNum: util.getValue(lines, ' Serial Number:'),
|
serialNum: util.getValue(lines, ' Serial Number:'),
|
||||||
voltageConfigured: null,
|
voltageConfigured: null,
|
||||||
@ -508,7 +486,7 @@ function memLayout(callback) {
|
|||||||
ecc: false,
|
ecc: false,
|
||||||
clockSpeed: null,
|
clockSpeed: null,
|
||||||
formFactor: 'SOC',
|
formFactor: 'SOC',
|
||||||
manufacturer: getManufacturerDarwin(manufacturerId),
|
manufacturer: getManufacturer(manufacturerId),
|
||||||
partNum: '',
|
partNum: '',
|
||||||
serialNum: '',
|
serialNum: '',
|
||||||
voltageConfigured: null,
|
voltageConfigured: null,
|
||||||
@ -551,7 +529,7 @@ function memLayout(callback) {
|
|||||||
ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false,
|
ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false,
|
||||||
clockSpeed: parseInt(util.getValue(lines, 'ConfiguredClockSpeed', ':'), 10) || parseInt(util.getValue(lines, 'Speed', ':'), 10) || 0,
|
clockSpeed: parseInt(util.getValue(lines, 'ConfiguredClockSpeed', ':'), 10) || parseInt(util.getValue(lines, 'Speed', ':'), 10) || 0,
|
||||||
formFactor: FormFactors[parseInt(util.getValue(lines, 'FormFactor', ':'), 10) || 0],
|
formFactor: FormFactors[parseInt(util.getValue(lines, 'FormFactor', ':'), 10) || 0],
|
||||||
manufacturer: util.getValue(lines, 'Manufacturer', ':'),
|
manufacturer: getManufacturer(util.getValue(lines, 'Manufacturer', ':')),
|
||||||
partNum: util.getValue(lines, 'PartNumber', ':'),
|
partNum: util.getValue(lines, 'PartNumber', ':'),
|
||||||
serialNum: util.getValue(lines, 'SerialNumber', ':'),
|
serialNum: util.getValue(lines, 'SerialNumber', ':'),
|
||||||
voltageConfigured: (parseInt(util.getValue(lines, 'ConfiguredVoltage', ':'), 10) || 0) / 1000.0,
|
voltageConfigured: (parseInt(util.getValue(lines, 'ConfiguredVoltage', ':'), 10) || 0) / 1000.0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user