graphics() nvidia-smi detection improved
This commit is contained in:
parent
560135e244
commit
283e11b1dd
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.34.1 | 2020-01-05 | `graphics()` nvidia-smi detection improved |
|
||||||
| 4.34.0 | 2020-01-05 | `system()` added flag virtual |
|
| 4.34.0 | 2020-01-05 | `system()` added flag virtual |
|
||||||
| 4.33.8 | 2020-01-04 | `virtualBox()` fix issue windows host |
|
| 4.33.8 | 2020-01-04 | `virtualBox()` fix issue windows host |
|
||||||
| 4.33.7 | 2020-01-04 | `graphics()` nvidia-smi detection improved |
|
| 4.33.7 | 2020-01-04 | `graphics()` nvidia-smi detection improved |
|
||||||
|
|||||||
@ -829,7 +829,8 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
|
|||||||
- Nathan Patten [nrpatten](https://github.com/nrpatten)
|
- Nathan Patten [nrpatten](https://github.com/nrpatten)
|
||||||
- Juan Campuzano [juancampuzano](https://github.com/juancampuzano)
|
- Juan Campuzano [juancampuzano](https://github.com/juancampuzano)
|
||||||
- Ricardo Polo [ricardopolo](https://github.com/ricardopolo)
|
- Ricardo Polo [ricardopolo](https://github.com/ricardopolo)
|
||||||
- Miłosz Dźwigała [mily20001]https://github.com/mily20001
|
- Miłosz Dźwigała [mily20001](https://github.com/mily20001)
|
||||||
|
- cconley717 [cconley717](https://github.com/cconley717)
|
||||||
|
|
||||||
OSX Temperature: credits here are going to:
|
OSX Temperature: credits here are going to:
|
||||||
|
|
||||||
|
|||||||
@ -61,6 +61,7 @@
|
|||||||
<li>Juan Campuzano <a href="https://github.com/juancampuzano" rel="nofollow">juancampuzano</a></li>
|
<li>Juan Campuzano <a href="https://github.com/juancampuzano" rel="nofollow">juancampuzano</a></li>
|
||||||
<li>Ricardo Polo <a href="https://github.com/ricardopolo" rel="nofollow">ricardopolo</a></li>
|
<li>Ricardo Polo <a href="https://github.com/ricardopolo" rel="nofollow">ricardopolo</a></li>
|
||||||
<li>Miłosz Dźwigała <a href="https://github.com/mily20001" rel="nofollow">mily20001</a></li>
|
<li>Miłosz Dźwigała <a href="https://github.com/mily20001" rel="nofollow">mily20001</a></li>
|
||||||
|
<li>cconley717 <a href="https://github.com/cconley717" rel="nofollow">cconley717</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>OSX Temperature: credits here are going to:</p>
|
<p>OSX Temperature: credits here are going to:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.34.1</th>
|
||||||
|
<td>2020-01-05</td>
|
||||||
|
<td><span class="code">graphics()</span> nvidia-smi detection improved</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.34.0</th>
|
<th scope="row">4.34.0</th>
|
||||||
<td>2020-01-05</td>
|
<td>2020-01-05</td>
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></div>
|
<div class="subtitle"><span id="typed"></span></div>
|
||||||
<div class="version">Current Version: <span id="version">4.34.0</span></div>
|
<div class="version">Current Version: <span id="version">4.34.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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -784,7 +784,24 @@ function graphics(callback) {
|
|||||||
result.controllers = parseLinesWindowsControllers(csections);
|
result.controllers = parseLinesWindowsControllers(csections);
|
||||||
// needs to be rewritten ... using no spread operators
|
// needs to be rewritten ... using no spread operators
|
||||||
result.controllers = result.controllers.map((controller) => { // match by subDeviceId
|
result.controllers = result.controllers.map((controller) => { // match by subDeviceId
|
||||||
return mergeControllerNvidia(controller, nvidiaData.find(device => controller.subDeviceId.toLowerCase() === device.subDeviceId.split('x')[1].toLowerCase()) || {});
|
if (controller.vendor.toLowerCase() === 'nvidia') {
|
||||||
|
return mergeControllerNvidia(controller, nvidiaData.find(device => {
|
||||||
|
let windowsSubDeviceId = controller.subDeviceId.toLowerCase();
|
||||||
|
const nvidiaSubDeviceIdParts = device.subDeviceId.split('x');
|
||||||
|
let nvidiaSubDeviceId = nvidiaSubDeviceIdParts.length > 1 ? nvidiaSubDeviceIdParts[1].toLowerCase() : nvidiaSubDeviceIdParts[0].toLowerCase();
|
||||||
|
const lengthDifference = Math.abs(windowsSubDeviceId.length - nvidiaSubDeviceId.length);
|
||||||
|
if (windowsSubDeviceId.length > nvidiaSubDeviceId.length) {
|
||||||
|
for (let i = 0; i < lengthDifference; i++) {
|
||||||
|
nvidiaSubDeviceId = '0' + nvidiaSubDeviceId;
|
||||||
|
}
|
||||||
|
} else if (windowsSubDeviceId.length < nvidiaSubDeviceId.length) {
|
||||||
|
for (let i = 0; i < lengthDifference; i++) {
|
||||||
|
windowsSubDeviceId = '0' + windowsSubDeviceId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return windowsSubDeviceId === nvidiaSubDeviceId;
|
||||||
|
}) || {});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// displays
|
// displays
|
||||||
let dsections = data[1].split(/\n\s*\n/);
|
let dsections = data[1].split(/\n\s*\n/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user