graphics() controller subid fix (win)
This commit is contained in:
parent
19dc7a5292
commit
98f491a7c7
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.34.8 | 2020-01-25 | `graphics()` controller subid fix (win) |
|
||||
| 4.34.7 | 2020-01-13 | `services()` improved service discovery (linux) |
|
||||
| 4.34.6 | 2020-01-12 | `networkInterfaces()` catch errors |
|
||||
| 4.34.5 | 2020-01-07 | `networkInterfaceDefault()` fixed CMD popup (windows) |
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.34.8</th>
|
||||
<td>2020-01-25</td>
|
||||
<td><span class="code">graphics()</span> controller subid fix (win)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.34.7</th>
|
||||
<td>2020-01-13</td>
|
||||
@ -2069,4 +2074,4 @@
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@ -169,7 +169,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.34.7</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.34.8</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">
|
||||
@ -208,7 +208,7 @@
|
||||
<div class="title">Downloads last month</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
|
||||
<div class="numbers">367</div>
|
||||
<div class="numbers">375</div>
|
||||
<div class="title">Dependents</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -366,4 +366,4 @@
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
@ -720,8 +720,8 @@ function graphics(callback) {
|
||||
result.controllers = parseLinesLinuxControllers(lines);
|
||||
const nvidiaData = nvidiaDevices();
|
||||
// needs to be rewritten ... using no spread operators
|
||||
result.controllers = result.controllers.map(( controller ) => { // match by busAddress
|
||||
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.endsWith(controller.busAddress)) || {} );
|
||||
result.controllers = result.controllers.map((controller) => { // match by busAddress
|
||||
return mergeControllerNvidia(controller, nvidiaData.find(({ pciBus }) => pciBus.endsWith(controller.busAddress)) || {});
|
||||
})
|
||||
}
|
||||
let cmd = "clinfo --raw";
|
||||
@ -887,9 +887,13 @@ function graphics(callback) {
|
||||
if (sections[i].trim() !== '') {
|
||||
|
||||
let lines = sections[i].trim().split('\r\n');
|
||||
let subDeviceId = util.getValue(lines, 'PNPDeviceID', '=').match(/SUBSYS_[a-fA-F\d]{8}/)[0];
|
||||
if (subDeviceId) {
|
||||
subDeviceId = subDeviceId.split('_')[1];
|
||||
let pnpDeviceId = util.getValue(lines, 'PNPDeviceID', '=').match(/SUBSYS_[a-fA-F\d]{8}/);
|
||||
let subDeviceId = null;
|
||||
if (pnpDeviceId) {
|
||||
subDeviceId = pnpDeviceId[0];
|
||||
if (subDeviceId) {
|
||||
subDeviceId = subDeviceId.split('_')[1];
|
||||
}
|
||||
}
|
||||
controllers.push({
|
||||
vendor: util.getValue(lines, 'AdapterCompatibility', '='),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user