diff --git a/CHANGELOG.md b/CHANGELOG.md index 843a4d1..b789fc4 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 | | -------------- | -------------- | -------- | +| 5.0.1 | 2020-01-26 | code cleanup | | 5.0.0 | 2020-01-26 | new major version 5 release | | 4.34.9 | 2020-01-25 | `graphics()` virtual controller vram value fix (win) | | 4.34.8 | 2020-01-25 | `graphics()` controller subDeviceId fix (win) | diff --git a/docs/history.html b/docs/history.html index d72dee1..06bafba 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.0.1 + 2020-01-26 + code cleanup + 5.0.0 2020-01-26 @@ -2062,4 +2067,4 @@ - \ No newline at end of file + diff --git a/docs/index.html b/docs/index.html index ebb6a64..2983be4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.0.0
+
New Version: 5.0.1
@@ -396,4 +396,4 @@ - \ No newline at end of file + diff --git a/lib/audio.js b/lib/audio.js index f825b61..4b519fd 100644 --- a/lib/audio.js +++ b/lib/audio.js @@ -199,7 +199,7 @@ function audio(callback) { const parts = stdout.toString().split(/\n\s*\n/); for (let i = 0; i < parts.length; i++) { if (util.getValue(parts[i].split('\n'), 'name', '=')) { - result.push(parseWindowsAudio(parts[i].split('\n'), i)); + result.push(parseWindowsAudio(parts[i].split('\n'))); } } } diff --git a/lib/bluetooth.js b/lib/bluetooth.js index c4cc3a7..bc05b08 100644 --- a/lib/bluetooth.js +++ b/lib/bluetooth.js @@ -163,7 +163,7 @@ function bluetoothDevices(callback) { const parts = stdout.toString().split(/\n\s*\n/); for (let i = 0; i < parts.length; i++) { if (util.getValue(parts[i].split('\n'), 'PNPClass', '=') === 'Bluetooth') { - result.push(parseWindowsBluetooth(parts[i].split('\n'), i)); + result.push(parseWindowsBluetooth(parts[i].split('\n'))); } } } diff --git a/lib/network.js b/lib/network.js index 38b2e93..8dad672 100644 --- a/lib/network.js +++ b/lib/network.js @@ -468,7 +468,7 @@ function parseLinesDarwinNics(sections) { if (nic.speed === null) { speed = util.getValue(section, 'uplink rate'); nic.speed = speed ? parseFloat(speed) : null; - if (nic.speed > null && speed.toLowerCase().indexOf('gbps') >= 0) { + if (nic.speed !== null && speed.toLowerCase().indexOf('gbps') >= 0) { nic.speed = nic.speed * 1000; } } else {