mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 03:30:35 +02:00
fix index status
This commit is contained in:
@@ -47,7 +47,7 @@ if [ "$1" = "status" ]; then
|
||||
indexInfo="OK"
|
||||
else
|
||||
echo "isIndexed=0"
|
||||
if [ ${#indexedToBlock} -gt 0 ]; then
|
||||
if [ ${#indexedToBlock} -gt 0 ] && [ ${#blockchainHeight} -gt 0 ]; then
|
||||
progressPercent=$(printf %.2f $(echo "${indexedToBlock}/${blockchainHeight}*100" | bc -l))
|
||||
indexInfo="Indexing is at ${progressPercent}% (please wait)"
|
||||
else
|
||||
|
Reference in New Issue
Block a user