Skip to content

Commit 53cca2f

Browse files
graphics() improved nvidia-smi detection (windows)
1 parent 5231c64 commit 53cca2f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
9090

9191
| Version | Date | Comment |
9292
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
93+
| 5.30.6 | 2026-01-22 | `graphics()` improved nvidia-smi detection (windows) |
9394
| 5.30.5 | 2026-01-16 | `networkInterfaces()` fix uppercase iface names (linux) |
9495
| 5.30.4 | 2026-01-15 | `powerShell()` fix UTF8 output (windows) |
9596
| 5.30.3 | 2026-01-11 | Updated docs, code cleanup |

docs/history.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ <h3>Full version history</h3>
5757
</tr>
5858
</thead>
5959
<tbody>
60+
<tr>
61+
<th scope="row">5.30.6
62+
</th>
63+
<td>2026-01-22</td>
64+
<td><span class="code">graphics()</span> improved nvidia-smi detection (windows)</td>
65+
</tr>
6066
<tr>
6167
<th scope="row">5.30.5
6268
</th>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
<img class="logo" src="assets/logo.png" alt="logo">
171171
<div class="title">systeminformation</div>
172172
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
173-
<div class="version">New Version: <span id="version">5.30.5</span></div>
173+
<div class="version">New Version: <span id="version">5.30.6</span></div>
174174
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
175175
</div>
176176
<div class="down">

lib/graphics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,12 @@ function graphics(callback) {
455455
if (nvidiaSmiExe) {
456456
const nvidiaSmiOpts =
457457
'--query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits';
458-
const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts;
458+
const cmd = `"${nvidiaSmiExe}" ${nvidiaSmiOpts}`;
459459
if (_linux) {
460460
options.stdio = ['pipe', 'pipe', 'ignore'];
461461
}
462462
try {
463-
const sanitized = util.sanitizeShellString(cmd) + (_linux ? ' 2>/dev/null' : '') + (_windows ? ' 2> nul' : '');
463+
const sanitized = cmd + (_linux ? ' 2>/dev/null' : '') + (_windows ? ' 2> nul' : '');
464464
const res = execSync(sanitized, options).toString();
465465
return res;
466466
} catch {

0 commit comments

Comments
 (0)