Skip to content

Commit

Permalink
Fix zero progress being treated as failure
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Jul 24, 2024
1 parent dee517a commit ef8e00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions progress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ if [ $CHAIN_ID -eq 11155420 ]; then
fi

T0=`cast block-number --rpc-url $ETH_RPC_URL` ; sleep 10 ; T1=`cast block-number --rpc-url $ETH_RPC_URL`
PER_MIN=`expr $T1 - $T0`
PER_MIN=`expr $PER_MIN \* 6`
PER_MIN=$(($T1 - $T0))
PER_MIN=$(($PER_MIN * 6))
echo Blocks per minute: $PER_MIN


Expand Down

0 comments on commit ef8e00b

Please sign in to comment.