mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix for multiple gpu output
This commit is contained in:
parent
9ebba813c9
commit
182c622d46
2
inxi
2
inxi
|
@ -2205,7 +2205,7 @@ get_gpu_temp_data()
|
|||
# first get the number of screens
|
||||
screens=$( nvidia-settings -q screens | gawk '
|
||||
/:[0-9]\.[0-9]/ {
|
||||
screens=screens gensub(/(.*)(:[0-9]\.[0-9])(.*)/, "\\2", "1", $0)
|
||||
screens=screens gensub(/(.*)(:[0-9]\.[0-9])(.*)/, "\\2", "1", $0) " "
|
||||
}
|
||||
END {
|
||||
print screens
|
||||
|
|
Loading…
Reference in a new issue