fixed ordering of multicard assembler for print

This commit is contained in:
inxi-svn 2008-10-30 07:28:43 +00:00
parent 19ad149b28
commit d2f36ba0e0

5
inxi
View file

@ -1195,17 +1195,18 @@ print_gfx_data()
{
local gfx_data='' i='' card_one='Card '
gfx_data=$( create_print_line "Graphics:" "${C1}$card_one${C2}${A_GFX_DATA[0]}" )
if [[ ${#A_GFX_DATA[@]} -gt 1 ]]
then
i=1
while [[ -n ${A_GFX_DATA[i]} && $i -le 3 ]]
do
gfx_data="${gfx_data} ${C1}Card-$(($i+1))${C2} ${A_GFX_DATA[i]} "
gfx_data=" ${C1}Card-$(($i+1))${C2} ${A_GFX_DATA[i]} "
((i++))
done
card_one='Card-1 '
fi
gfx_data=$( create_print_line "Graphics:" "${C1}$card_one${C2}${A_GFX_DATA[0]}${gfx_data} " )
if [ "$X" -gt 0 ]
then
gfx_data="${gfx_data} ${CN}| ${C1}$X_VENDOR${C2} $X_VER_NUM ${CN}| ${C1}Res${C2} ${RES}"