From 777d0ea1fb6c9820f8243ce4101f0fdecc250215 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Sat, 22 Jun 2019 20:33:49 -0700 Subject: [PATCH] Change cal_tps.sh to grep Hooray --- test/cal_tps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cal_tps.sh b/test/cal_tps.sh index f5c2b2d58..b3fb3c239 100755 --- a/test/cal_tps.sh +++ b/test/cal_tps.sh @@ -61,7 +61,7 @@ done FILES=$(cat $VALIDATORS) for i in $FILES; do 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 done