diff --git a/CHANGELOG.md b/CHANGELOG.md index af06c17..34b7a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -98,6 +98,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.31.3 | 2017-10-21 | bugfix `graphics()`, fixed typo `README.md` | | 3.31.2 | 2017-10-16 | bugfix `graphics()` vendor and model parsing linux VGA/3D | | 3.31.1 | 2017-10-16 | bugfix `graphics()` vendor and model parsing linux | | 3.31.0 | 2017-10-15 | extended windows support `cpuFlags()` (partially) | diff --git a/README.md b/README.md index 040ffef..f9df19d 100644 --- a/README.md +++ b/README.md @@ -446,7 +446,7 @@ si.networkStats('eth1', function(data) { **Promises Style** is new in version 3.0. -When omitting callback parameter (cb), then you can use all function in a promise oriented way. All functions (exept of `version` and `time`) are returning a promis, that you can consume: +When omitting callback parameter (cb), then you can use all function in a promise oriented way. All functions (exept of `version` and `time`) are returning a promise, that you can consume: ```js const si = require('systeminformation'); diff --git a/lib/graphics.js b/lib/graphics.js index f2907bb..a19fdf7 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -126,6 +126,9 @@ function graphics(callback) { let vgapos = lines[i].toLowerCase().indexOf('vga'); let _3dcontrollerpos = lines[i].toLowerCase().indexOf('3d controller'); if (vgapos !== -1 || _3dcontrollerpos !== -1) { // VGA + if (_3dcontrollerpos !== -1 && vgapos === -1) { + vgapos = _3dcontrollerpos; + } if (Object.keys(currentController).length > 0) {// already a controller found controllers.push(currentController); currentController = {};