From 21f62730554305ae42c5421c2ff39fb69a41090f Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 14 Dec 2020 20:02:17 +0100 Subject: [PATCH] graphics() Windows 7 Graphics Fixes (Multi Monitor) --- CHANGELOG.md | 1 + docs/history.html | 10 ++++++++-- docs/index.html | 2 +- lib/graphics.js | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 832d04f..21a5bbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 4.31.2 | 2020-12-14 | `graphics()` Windows 7 Graphics Fixes (Multi Monitor) | | 4.31.1 | 2020-12-11 | `inetLatency()` command injection vulnaribility fix | | 4.31.0 | 2020-12-06 | `osInfo()` added FQDN | | 4.30.11 | 2020-12-02 | `cpu()` bug fix speed parsing | diff --git a/docs/history.html b/docs/history.html index 1fb4dc9..4622b3c 100644 --- a/docs/history.html +++ b/docs/history.html @@ -83,9 +83,14 @@ + + 4.31.2 + 2020-12-14 + graphics() Windows 7 Graphics Fix (Multi Monitor) + 4.31.1 - 2020-12-06 + 2020-12-11 inetLatency() command injection vulnaribility fix @@ -672,7 +677,8 @@ 4.12.1 2019-06-24 networkInterface() virtual interfaces mac OS
- networkInterfaceDefault() optimization windows + networkInterfaceDefault() optimization windows + 4.12.0 diff --git a/docs/index.html b/docs/index.html index 795a454..094b8d4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -169,7 +169,7 @@
systeminformation
-
Current Version: 4.31.1
+
Current Version: 4.31.2
diff --git a/lib/graphics.js b/lib/graphics.js index 94112d6..2a67498 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -722,9 +722,9 @@ function graphics(callback) { if (ssections[i].trim() !== '') { ssections[i] = 'BitsPerPixel ' + ssections[i]; msections[i] = 'Active ' + msections[i]; - // tsections can be empty on earlier versions of powershell (<=2.0). Tag connection type as UNKNOWN - // if this information is missing - if (tsections.length === 0) { + // tsections can be empty OR undefined on earlier versions of powershell (<=2.0) + // Tag connection type as UNKNOWN by default if this information is missing + if (tsections.length === 0 || tsections[i] === undefined) { tsections[i] = 'Unknown'; } let linesScreen = ssections[i].split(os.EOL);