Skip to content
Snippets Groups Projects
Commit 817c9e67 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

No more result in monitor.sh after we starting using geth_rpc from libbfa

parent 840423c4
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ echo "total-peer-count: ${numpeers}" >> ${statusfile} ...@@ -29,7 +29,7 @@ echo "total-peer-count: ${numpeers}" >> ${statusfile}
peercount=0 peercount=0
for idx in $( seq 0 $(( $numpeers - 1 )) ) for idx in $( seq 0 $(( $numpeers - 1 )) )
do do
eth=$( echo "$json" | jq -r .result[$idx].protocols.eth ) eth=$( echo "$json" | jq -r .[$idx].protocols.eth )
if [ "$eth" = "handshake" ] if [ "$eth" = "handshake" ]
then then
continue continue
...@@ -37,11 +37,11 @@ do ...@@ -37,11 +37,11 @@ do
#echo -n "$idx: "; echo "$eth" | jq -c #echo -n "$idx: "; echo "$eth" | jq -c
remoteid=$( remoteid=$(
echo "$json" | echo "$json" |
jq -r .result[$idx].id jq -r .[$idx].id
) )
remoteaddress=$( remoteaddress=$(
echo "$json" | echo "$json" |
jq -r .result[$idx].network.remoteAddress jq -r .[$idx].network.remoteAddress
) )
remoteip=$( remoteip=$(
echo "$remoteaddress" | echo "$remoteaddress" |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment