code cleanup
This commit is contained in:
parent
cb2c057294
commit
83d82875d4
@ -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) |
|
||||
|
||||
@ -56,6 +56,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">5.0.1</th>
|
||||
<td>2020-01-26</td>
|
||||
<td>code cleanup</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">5.0.0</th>
|
||||
<td>2020-01-26</td>
|
||||
@ -2062,4 +2067,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@ -170,7 +170,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span> </div>
|
||||
<div class="version">New Version: <span id="version">5.0.0</span></div>
|
||||
<div class="version">New Version: <span id="version">5.0.1</span></div>
|
||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||
</div>
|
||||
<div class="down">
|
||||
@ -396,4 +396,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@ -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')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user