File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
## v1.1.0
2
2
+ Changed gpu stat to use glxinfo instead of lspci
3
- + Added integrated and dedicated GPU detection
3
+ + Added integrated and dedicated GPU detection
4
+
5
+ ## v1.1.1
6
+ + Fixed glxinfo output being displayed when fetching GPU
Original file line number Diff line number Diff line change 1
- const VERSION* = static : " 1.1.0 "
1
+ const VERSION* = static : " 1.1.1 "
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ proc getGpu*(): string =
347
347
if defined(linux) or defined(bsd):
348
348
let tmpFile = " glxinfo.txt" .toTmpPath
349
349
350
- if execCmd(" glxinfo -B & > " & tmpFile) != 0 :
350
+ if execCmd(" glxinfo -B > " & tmpFile & " 2>&1 " ) != 0 :
351
351
if readFile(tmpFile).strip() == " Error: unable to open display" :
352
352
result = " Unknown"
353
353
else : logError(" Failed to fetch GPU!" )
You can’t perform that action at this time.
0 commit comments