diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd7cac3..facab2d 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.21 | 2021-05-14 | `graphics()` fixed dual gpu issue (macOS) |
| 5.6.20 | 2021-05-07 | `system()` fixed vm detection (linux) |
| 5.6.19 | 2021-05-06 | `services()` modified service listing (linux) |
| 5.6.18 | 2021-05-06 | `processes()` fixed Windows mem bug (naming conform to all platforms) |
diff --git a/docs/history.html b/docs/history.html
index 7afb22b..e7cec98 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -56,6 +56,11 @@
+
+ | 5.6.21 |
+ 2021-05-14 |
+ graphics() fixed dual gpu issue (macOS) |
+
| 5.6.20 |
2021-05-07 |
diff --git a/docs/index.html b/docs/index.html
index 17ab6ca..c32439d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- New Version: 5.6.20
+ New Version: 5.6.21
diff --git a/lib/graphics.js b/lib/graphics.js
index cb9e322..460131a 100644
--- a/lib/graphics.js
+++ b/lib/graphics.js
@@ -108,7 +108,7 @@ function graphics(callback) {
};
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
- displays.push(currentDisplay);
+ if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
currentDisplay = {
vendor: '',
model: '',
@@ -200,7 +200,7 @@ function graphics(callback) {
controllers.push(currentController);
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
- displays.push(currentDisplay);
+ if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
}
return ({
controllers: controllers,