Commit 988c0b29 authored by Dylan Araps's avatar Dylan Araps

GPU: Rename index to gpu_num

parent 7069410e
......@@ -969,7 +969,7 @@ get_gpu() {
gpus=($(lspci -mm | awk -F '\\"|\\" \\"' '/"Display|"3D|"VGA/ {print $3 " " $4}'))
# Number the GPUs if more than one exists.
[[ "${#gpus[@]}" > 1 ]] && index=0
[[ "${#gpus[@]}" > 1 ]] && gpu_num=0
for gpu in "${gpus[@]}"; do
case "$gpu" in
......@@ -1005,8 +1005,8 @@ get_gpu() {
gpu="${gpu/Intel }"
fi
prin "GPU${index}" "$gpu"
index="$((index+=1))"
prin "GPU${gpu_num}" "$gpu"
gpu_num="$((gpu_num+=1))"
done
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment