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}
peercount=0
for idx in $( seq 0 $(( $numpeers - 1 )) )
do
eth=$( echo "$json" | jq -r .result[$idx].protocols.eth )
eth=$( echo "$json" | jq -r .[$idx].protocols.eth )
if [ "$eth" = "handshake" ]
then
continue
......@@ -37,11 +37,11 @@ do
#echo -n "$idx: "; echo "$eth" | jq -c
remoteid=$(
echo "$json" |
jq -r .result[$idx].id
jq -r .[$idx].id
)
remoteaddress=$(
echo "$json" |
jq -r .result[$idx].network.remoteAddress
jq -r .[$idx].network.remoteAddress
)
remoteip=$(
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