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
commit 62eb32ce87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@
# command info
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
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
fi
@ -214,4 +214,4 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
fi
echo "FAIL - Unknown Parameter $1"
exit 1
exit 1

View File

@ -49,7 +49,8 @@ if [ "$1" = "status" ]; then
else
echo "isIndexed=0"
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
indexInfo="Indexing is running (please wait)"
fi