bug fix with ps count for irc

This commit is contained in:
inxi-svn 2015-05-30 19:07:22 +00:00
parent 0e2afce7d6
commit bb8d1a6dc2

5
inxi
View file

@ -13012,6 +13012,7 @@ print_ps_item()
if [[ -n $PS_THROTTLED ]];then
throttled=" ${C1} - throttled from${C2} $PS_THROTTLED"
fi
echo psc: $PS_COUNT
case $1 in
cpu)
if [[ $B_EXTRA_DATA == 'true' ]];then
@ -13020,7 +13021,7 @@ print_ps_item()
memory=" - ${C1}Used/Total$SEP3${C2} $( get_memory_data )"
fi
fi
line_start_data="${C1}CPU$SEP3 % used$extra_text$memory${C1} - top ${C2}$PS_COUNT ${C1}active$throttled"
line_start_data="${C1}CPU$SEP3 % used$extra_text$memory${C1} - top${C2} $PS_COUNT ${C1}active$throttled"
;;
mem)
if [[ $B_EXTRA_DATA == 'true' ]];then
@ -13029,7 +13030,7 @@ print_ps_item()
if [[ $B_SHOW_INFO == 'false' ]];then
memory=" - ${C1}Used/Total$SEP3${C2} $( get_memory_data )"
fi
line_start_data="${C1}Memory$SEP3 MB / % used$memory$extra_text${C1} - top ${C2}$PS_COUNT ${C1}active$throttled"
line_start_data="${C1}Memory$SEP3 MB / % used$memory$extra_text${C1} - top${C2} $PS_COUNT ${C1}active$throttled"
;;
esac