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

7
inxi
View file

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