bugfix memLayout() (Windows)
This commit is contained in:
parent
e93789ffb3
commit
e1348e5c94
@ -99,6 +99,7 @@ Other changes
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 3.33.13 | 2018-01-12 | bugfix `memLayout()` (Windows) |
|
||||||
| 3.33.12 | 2017-12-25 | fixed typos |
|
| 3.33.12 | 2017-12-25 | fixed typos |
|
||||||
| 3.33.11 | 2017-12-17 | updated docs |
|
| 3.33.11 | 2017-12-17 | updated docs |
|
||||||
| 3.33.10 | 2017-12-14 | bugfix WMIC blockDevice parse (Windows 7) |
|
| 3.33.10 | 2017-12-14 | bugfix WMIC blockDevice parse (Windows 7) |
|
||||||
|
|||||||
@ -708,7 +708,7 @@ function diskLayout(callback) {
|
|||||||
const size = util.getValue(lines, 'Size', '=').trim();
|
const size = util.getValue(lines, 'Size', '=').trim();
|
||||||
if (size) {
|
if (size) {
|
||||||
result.push({
|
result.push({
|
||||||
type: device.indexOf('SSD') > -1 ? 'SSD' : 'HD', // not really correct(!) ... maybe this obe is better: MSFT_PhysicalDisk - Media Type??
|
type: device.indexOf('SSD') > -1 ? 'SSD' : 'HD', // not really correct(!) ... maybe this one is better: MSFT_PhysicalDisk - Media Type??
|
||||||
name: util.getValue(lines, 'Caption', '='),
|
name: util.getValue(lines, 'Caption', '='),
|
||||||
vendor: util.getValue(lines, 'Manufacturer', '='),
|
vendor: util.getValue(lines, 'Manufacturer', '='),
|
||||||
size: parseInt(size),
|
size: parseInt(size),
|
||||||
|
|||||||
@ -293,7 +293,7 @@ function memLayout(callback) {
|
|||||||
const memoryTypes = 'Unknown|Other|DRAM|Synchronous DRAM|Cache DRAM|EDO|EDRAM|VRAM|SRAM|RAM|ROM|FLASH|EEPROM|FEPROM|EPROM|CDRAM|3DRAM|SDRAM|SGRAM|RDRAM|DDR|DDR2|DDR2 FB-DIMM|Reserved|DDR3|FBD2|DDR4|LPDDR|LPDDR2|LPDDR3|LPDDR4'.split('|');
|
const memoryTypes = 'Unknown|Other|DRAM|Synchronous DRAM|Cache DRAM|EDO|EDRAM|VRAM|SRAM|RAM|ROM|FLASH|EEPROM|FEPROM|EPROM|CDRAM|3DRAM|SDRAM|SGRAM|RDRAM|DDR|DDR2|DDR2 FB-DIMM|Reserved|DDR3|FBD2|DDR4|LPDDR|LPDDR2|LPDDR3|LPDDR4'.split('|');
|
||||||
const FormFactors = 'Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA'.split('|');
|
const FormFactors = 'Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA'.split('|');
|
||||||
|
|
||||||
exec(util.getWmic() + 'wmic memorychip get BankLabel, Capacity, ConfiguredClockSpeed, ConfiguredVoltage, MaxVoltage, MinVoltage, DataWidth, FormFactor, Manufacturer, MemoryType, PartNumber, SerialNumber, Speed, Tag /value', function (error, stdout) {
|
exec(util.getWmic() + ' memorychip get BankLabel, Capacity, ConfiguredClockSpeed, ConfiguredVoltage, MaxVoltage, MinVoltage, DataWidth, FormFactor, Manufacturer, MemoryType, PartNumber, SerialNumber, Speed, Tag /value', function (error, stdout) {
|
||||||
if (!error) {
|
if (!error) {
|
||||||
let devices = stdout.toString().split('BankL');
|
let devices = stdout.toString().split('BankL');
|
||||||
devices.shift();
|
devices.shift();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user