mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
Merge pull request #948 from frennkie/update-txindex-info
update txindex status line
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user