From de5054a0a93b2552cc39ade0cc0aaa9b9b8b7553 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 20 May 2021 23:42:32 +0200 Subject: [PATCH] graphics() check for qwMemorySize on Windows --- CHANGELOG.md | 1 + docs/history.html | 7 ++++++- docs/index.html | 2 +- lib/graphics.js | 8 ++++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68086ca..2f4fc25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.7.1 | 2021-05-20 | `graphics()` Check for qwMemorySize on Windows | | 5.7.0 | 2021-05-20 | `diskLayout()` added smartdata for win (if istalled) | | 5.6.22 | 2021-05-18 | `diskLayout()` fixed to small buffer smartdata (linux) | | 5.6.21 | 2021-05-14 | `graphics()` fixed dual gpu issue (macOS) | diff --git a/docs/history.html b/docs/history.html index eb768fe..ee228f1 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,10 +56,15 @@ + + 5.7.1 + 2021-05-20 + grahics() Check for qwMemorySize on Windows + 5.7.0 2021-05-20 - diskLayout() added smartdata fro Windows (if installed) + diskLayout() added smartdata for Windows (if installed) 5.6.22 diff --git a/docs/index.html b/docs/index.html index b40657e..b197849 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.7.0
+
New Version: 5.7.1
diff --git a/lib/graphics.js b/lib/graphics.js index 8fa233b..d2fd56b 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -932,7 +932,7 @@ function graphics(callback) { if (memorySize == null && pnpDeviceId[3] && pnpDeviceId[4]) { const deviceId = pnpDeviceId[1].toUpperCase() + '&' + pnpDeviceId[2].toUpperCase() + '&' + pnpDeviceId[3].toUpperCase() + '&' + pnpDeviceId[4].toUpperCase(); if ({}.hasOwnProperty.call(memorySizes, deviceId)) { - memorySize = memorySizes[deviceId] + memorySize = memorySizes[deviceId]; } } @@ -940,7 +940,7 @@ function graphics(callback) { if (memorySize == null && pnpDeviceId[3]) { const deviceId = pnpDeviceId[1].toUpperCase() + '&' + pnpDeviceId[2].toUpperCase() + '&' + pnpDeviceId[3].toUpperCase(); if ({}.hasOwnProperty.call(memorySizes, deviceId)) { - memorySize = memorySizes[deviceId] + memorySize = memorySizes[deviceId]; } } @@ -948,7 +948,7 @@ function graphics(callback) { if (memorySize == null && pnpDeviceId[4]) { const deviceId = pnpDeviceId[1].toUpperCase() + '&' + pnpDeviceId[2].toUpperCase() + '&' + pnpDeviceId[4].toUpperCase(); if ({}.hasOwnProperty.call(memorySizes, deviceId)) { - memorySize = memorySizes[deviceId] + memorySize = memorySizes[deviceId]; } } @@ -956,7 +956,7 @@ function graphics(callback) { if (memorySize == null) { const deviceId = pnpDeviceId[1].toUpperCase() + '&' + pnpDeviceId[2].toUpperCase(); if ({}.hasOwnProperty.call(memorySizes, deviceId)) { - memorySize = memorySizes[deviceId] + memorySize = memorySizes[deviceId]; } } }