From acbaac389e534ee88d77be46134035cd735fa057 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Fri, 15 Mar 2024 21:48:51 +0100 Subject: [PATCH] memLayout() improved parsing memory bank (windows) --- lib/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/memory.js b/lib/memory.js index 8873531..2b52799 100644 --- a/lib/memory.js +++ b/lib/memory.js @@ -544,7 +544,7 @@ function memLayout(callback) { if (size) { result.push({ size, - bank: util.getValue(lines, 'BankLabel', ':') + tagInt[1] ? ' / ' + tagInt[1] : '', // BankLabel + bank: util.getValue(lines, 'BankLabel', ':') + (tagInt[1] ? '/' + tagInt[1] : ''), // BankLabel 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,