From d6f77beded4c5097b91998eecca1276e78a249cb Mon Sep 17 00:00:00 2001 From: aristocratos Date: Sun, 29 Mar 2020 03:18:27 +0200 Subject: [PATCH] ... --- bashtop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bashtop b/bashtop index 1b14d94..8f826b9 100755 --- a/bashtop +++ b/bashtop @@ -2134,8 +2134,8 @@ draw_processes() { #? Draw processes and values to screen print -v proc_det2 -m $((d_line+det_y++)) $((right_col+1)) -jc $((right_width-4)) -rs -fg ee -t "${proc[detailed_cmd]::$((right_width-6))}" - if ((dets>0)); then print -v proc_det2 -m $((d_line+det_y++)) $((right_col+1)) -jl $((right_width-4)) -t "${proc[detailed_cmd]:$((right_width-6)):$((right_width-6))}"; fi - if ((dets>1)); then print -v proc_det2 -m $((d_line+det_y)) $((right_col+1)) -jl $((right_width-4)) -t "${proc[detailed_cmd]:$(( (right_width-6)*2 )):$((right_width-6))}"; fi + if ((dets>0)); then print -v proc_det2 -m $((d_line+det_y++)) $((right_col+2)) -jl $((right_width-6)) -t "${proc[detailed_cmd]:$((right_width-6)):$((right_width-6))}"; fi + if ((dets>1)); then print -v proc_det2 -m $((d_line+det_y)) $((right_col+2)) -jl $((right_width-6)) -t "${proc[detailed_cmd]:$(( (right_width-6)*2 )):$((right_width-6))}"; fi fi @@ -2157,7 +2157,7 @@ draw_processes() { #? Draw processes and values to screen create_box -v proc_out -col ${box[${this_box}_col]} -line ${box[${this_box}_line]} -width ${box[${this_box}_width]} -height ${box[${this_box}_height]} -fill -lc "${box[${this_box}_color]}" -title ${this_box} fi fi - #! Use ps for better detailed stats!!!!! + if [[ ${proc[detailed]} -eq 1 ]]; then local det_status status_color if [[ -z $det_no_add && $1 != "now" && -z ${proc[detailed_killed]} ]]; then