Change cal_tps.sh to grep Hooray

pull/1145/head
Rongjian Lan 6 years ago
parent 1b2d1d27ab
commit 777d0ea1fb
  1. 2
      test/cal_tps.sh

@ -61,7 +61,7 @@ done
FILES=$(cat $VALIDATORS) FILES=$(cat $VALIDATORS)
for i in $FILES; do for i in $FILES; do
peer=`echo $i | cut -f 5 -d - | cut -f 1 -d .` peer=`echo $i | cut -f 5 -d - | cut -f 1 -d .`
num=`grep "Added New Block to Blockchain" $i | tail -n 1 | cut -f 6 -d , | grep -Eo [0-9]+` num=`grep "HOORAY" $i | tail -n 1 | cut -f 6 -d , | grep -Eo [0-9]+`
echo "peerID": $peer, "numOfConsensus": $num echo "peerID": $peer, "numOfConsensus": $num
done done

Loading…
Cancel
Save