Skip to content

Commit

Permalink
Fix wrong field being used.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalinrh committed Sep 26, 2023
1 parent 6ad0e09 commit e62aa1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streams/streams_run
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ process_results()
field_index=1
while IFS= read -r line
do
current_socket=`echo $line | cut -d':' -f4`
current_socket=`echo $line | cut -d':' -f3`
if [ $number_sockets -eq 0 ]; then
number_sockets=$current_socket
else
Expand Down Expand Up @@ -174,7 +174,7 @@ retrieve_line()
items=0
calc_line=""

info=`grep "${search_for}" ${file}* | tr -s " " | sed "s/ /:/g" | cut -d: -f 3`
info=`grep "${search_for}" ${file}* | tr -s " " | sed "s/ /:/g" | cut -d: -f 4`

for i in $info; do
if [ $items -eq 0 ]; then
Expand Down

0 comments on commit e62aa1b

Please sign in to comment.