From 54f2736445c9dde8bfbf025e3e5eca152c6a54ee Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 5 May 2021 08:58:36 +0200 Subject: [PATCH] graphics() fixed compare bug --- CHANGELOG.md | 1 + docs/history.html | 7 ++++++- docs/index.html | 4 ++-- docs/v4/history.html | 7 ++++++- docs/v4/index.html | 4 ++-- lib/graphics.js | 2 +- 6 files changed, 18 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ece67b2..1d74454 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.6.16 | 2021-05-05 | `graphics()` fixed compare bug | | 5.6.15 | 2021-05-05 | restored Node 4.x compatibility | | 5.6.14 | 2021-05-04 | `networkGatewayDefault()` macOS improvement for active VPN | | 5.6.13 | 2021-05-04 | `dockerImagesInspect()`, `dockerContainerInspect()`, `dockerContainerProcesses()` security updates | diff --git a/docs/history.html b/docs/history.html index 426147b..0294099 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.6.16 + 2021-05-05 + graphics() fixed compare bug + 5.6.15 2021-05-05 @@ -2292,4 +2297,4 @@ - \ No newline at end of file + diff --git a/docs/index.html b/docs/index.html index f1075f1..8aedc3d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.6.15
+
New Version: 5.6.16
@@ -398,4 +398,4 @@ - \ No newline at end of file + diff --git a/docs/v4/history.html b/docs/v4/history.html index 948bb0f..55322d9 100644 --- a/docs/v4/history.html +++ b/docs/v4/history.html @@ -83,6 +83,11 @@ + + 4.34.22 + 2021-05-05 + restored Node 4.x compatibility + 4.34.21 2021-05-04 @@ -2142,4 +2147,4 @@ - \ No newline at end of file + diff --git a/docs/v4/index.html b/docs/v4/index.html index 0378a53..5c05810 100644 --- a/docs/v4/index.html +++ b/docs/v4/index.html @@ -170,7 +170,7 @@
systeminformation
 
Version 4 documentation
-
Current Version: 4.34.21
+
Current Version: 4.34.22
@@ -369,4 +369,4 @@ - \ No newline at end of file + diff --git a/lib/graphics.js b/lib/graphics.js index 828269c..cb9e322 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -728,7 +728,7 @@ function graphics(callback) { const nvidiaData = nvidiaDevices(); // needs to be rewritten ... using no spread operators result.controllers = result.controllers.map((controller) => { // match by busAddress - return mergeControllerNvidia(controller, nvidiaData.find((controller) => controller.pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {}); + return mergeControllerNvidia(controller, nvidiaData.find((contr) => contr.pciBus.toLowerCase().endsWith(controller.busAddress.toLowerCase())) || {}); }); } let cmd = 'clinfo --raw';