fix correct formatting for variable pid length

pull/19/head
aristocratos 2020-04-09 13:54:11 +02:00
parent 2bcbfa1e5a
commit a8d026cd03
1 changed files with 2 additions and 2 deletions

View File

@ -1459,8 +1459,8 @@ collect_processes() { #? Collect process information and calculate accurate cpu
#* Collect output from ps command to array #* Collect output from ps command to array
if ((width>60)); then format_args=",args:$((width-57+proc[pid_len]))=Arguments:"; format_cmd=15 if ((width>60)); then format_args=",args:$(( width-(36+proc[pid_len]) ))=Arguments:"; format_cmd=15
else format_cmd=$((width-41+proc[pid_len])); fi else format_cmd=$(( width-(31+proc[pid_len]) )); fi
unset 'proc_array[@]' 'pid_array[@]' unset 'proc_array[@]' 'pid_array[@]'
if ((proc[detailed]==0)) && [[ -n ${proc[detailed_name]} ]]; then if ((proc[detailed]==0)) && [[ -n ${proc[detailed_name]} ]]; then