moved client to second line if needed

This commit is contained in:
inxi-svn 2011-07-06 00:47:33 +00:00
parent 4d8033ec86
commit 77084b0e63

8
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.13
#### Date: July 5 2011
#### Patch Number: 02
#### Patch Number: 03
########################################################################
#### SPECIAL THANKS
########################################################################
@ -6616,7 +6616,7 @@ print_info_data()
eval $LOGFS
local info_data='' line_starter='Info:'
local runlvl=''
local runlvl='' client_data=''
local memory="$( get_memory_data )"
local processes="$(( $( ps aux | wc -l ) - 1 ))"
local up_time="$( get_uptime )"
@ -6648,9 +6648,9 @@ print_info_data()
fi
fi
if [[ $SHOW_IRC -gt 0 ]];then
info_data="${info_data} ${C1}Client${C2} ${IRC_CLIENT}${IRC_CLIENT_VERSION}${CN}"
client_data="${C1}Client${C2} ${IRC_CLIENT}${IRC_CLIENT_VERSION} "
fi
closing_data="$gcc_installed${C1}$SCRIPT_NAME${C2} $SCRIPT_VERSION_NUMBER$script_patch_number${CN}"
closing_data="$client_data$gcc_installed${C1}$SCRIPT_NAME${C2} $SCRIPT_VERSION_NUMBER$script_patch_number${CN}"
if [[ -n $info_data && $( calculate_line_length "$info_data $closing_data" ) -gt $LINE_MAX ]];then
info_data=$( create_print_line "$line_starter" "$info_data" )
print_screen_output "$info_data"