diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c0ae1b..81eeb41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.30.6 | 2026-01-22 | `graphics()` improved nvidia-smi detection (windows) | | 5.30.5 | 2026-01-16 | `networkInterfaces()` fix uppercase iface names (linux) | | 5.30.4 | 2026-01-15 | `powerShell()` fix UTF8 output (windows) | | 5.30.3 | 2026-01-11 | Updated docs, code cleanup | diff --git a/docs/history.html b/docs/history.html index 3d23459..721ccda 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,12 @@ + + 5.30.6 + + 2026-01-22 + graphics() improved nvidia-smi detection (windows) + 5.30.5 diff --git a/docs/index.html b/docs/index.html index 5df56eb..3fc5fa0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.30.5
+
New Version: 5.30.6
diff --git a/lib/graphics.js b/lib/graphics.js index a084a9e..d3a31dc 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -455,12 +455,12 @@ function graphics(callback) { if (nvidiaSmiExe) { const nvidiaSmiOpts = '--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'; - const cmd = nvidiaSmiExe + ' ' + nvidiaSmiOpts; + const cmd = `"${nvidiaSmiExe}" ${nvidiaSmiOpts}`; if (_linux) { options.stdio = ['pipe', 'pipe', 'ignore']; } try { - const sanitized = util.sanitizeShellString(cmd) + (_linux ? ' 2>/dev/null' : '') + (_windows ? ' 2> nul' : ''); + const sanitized = cmd + (_linux ? ' 2>/dev/null' : '') + (_windows ? ' 2> nul' : ''); const res = execSync(sanitized, options).toString(); return res; } catch {