From 817c9e678acd912b8ac8ffd6f1d67b7022e347d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar> Date: Thu, 27 Sep 2018 14:43:36 -0300 Subject: [PATCH] No more result in monitor.sh after we starting using geth_rpc from libbfa --- bin/monitor.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/monitor.sh b/bin/monitor.sh index 312c4d7..478e9cb 100755 --- a/bin/monitor.sh +++ b/bin/monitor.sh @@ -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" | -- GitLab