From 8d8ff5cfdeadf9700f13813fc71b780934120cc8 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 15 Sep 2021 16:49:03 +0200 Subject: [PATCH] emoryLayout() fix type (windows) --- lib/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memory.js b/lib/memory.js index e1aa80a..55f01db 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -508,7 +508,7 @@ function memLayout(callback) { result.push({ size: parseInt(util.getValue(lines, 'Capacity', '='), 10) || 0, bank: util.getValue(lines, 'abel', '='), // BankLabel - type: memoryTypes[parseInt(util.getValue(lines, 'MemoryType', '='), 10)], + type: memoryTypes[parseInt(util.getValue(lines, 'MemoryType', '='), 10) || parseInt(util.getValue(lines, 'SMBIOSMemoryType', '='), 10)], ecc: dataWidth && totalWidth ? totalWidth > dataWidth : false, clockSpeed: parseInt(util.getValue(lines, 'ConfiguredClockSpeed', '='), 10) || parseInt(util.getValue(lines, 'Speed', '='), 10) || 0, formFactor: FormFactors[parseInt(util.getValue(lines, 'FormFactor', '='), 10) || 0],