Merge pull request #948 from frennkie/update-txindex-info

update txindex status line
This commit is contained in:
Christian Rotzoll
2020-01-06 19:02:43 +01:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
# command info # command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "small config script to switch BTC-RPC-explorer on or off" echo "small config script to switch BTC-RPC-explorer on or off"
echo "bonus.btc-rcp-explorer.sh [status|on|off]" echo "bonus.btc-rpc-explorer.sh [status|on|off]"
exit 1 exit 1
fi fi

View File

@@ -49,7 +49,8 @@ if [ "$1" = "status" ]; then
else else
echo "isIndexed=0" echo "isIndexed=0"
if [ ${#indexedToBlock} -gt 0 ]; then if [ ${#indexedToBlock} -gt 0 ]; then
indexInfo="Indexing ${indexedToBlock}/${blockchainHeight} (please wait)" progressPercent=$(printf %.2f $(echo "${indexedToBlock}/${blockchainHeight}*100" | bc -l))
indexInfo="Indexing is at ${progressPercent}% (please wait)"
else else
indexInfo="Indexing is running (please wait)" indexInfo="Indexing is running (please wait)"
fi fi