From 2801402c0e2d38adc4e3f75b988e98092ee2a574 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 9 Nov 2017 13:28:34 +0100 Subject: [PATCH] bugfix graphics controller win --- CHANGELOG.md | 1 + lib/graphics.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48c7df2..fc0a12e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -99,6 +99,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.33.4 | 2017-11-09 | bugfix graphics controller win (bytes) | | 3.33.3 | 2017-11-08 | bugfix cpu speed arm - type | | 3.33.2 | 2017-11-08 | bugfix cpu speed arm | | 3.33.1 | 2017-11-07 | improved bios and main board information | diff --git a/lib/graphics.js b/lib/graphics.js index ed01390..abe4914 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -365,7 +365,7 @@ function graphics(callback) { model: util.getValue(lines, 'name', '='), vendor: util.getValue(lines, 'AdapterCompatibility', '='), bus: util.getValue(lines, 'PNPDeviceID', '=').startsWith('PCI') ? 'PCI' : '', - vram: util.getValue(lines, 'AdapterRAM', '='), + vram: parseInt(util.getValue(lines, 'AdapterRAM', '='), 10) / 1024 / 1024, vramDynamic: (util.getValue(lines, 'VideoMemoryType', '=') === '2') }); _resolutionx = toInt(util.getValue(lines, 'CurrentHorizontalResolution', '='));