mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
moved client to second line if needed
This commit is contained in:
parent
4d8033ec86
commit
77084b0e63
8
inxi
8
inxi
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue