mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
parent
742da1b9d7
commit
0ede78d0af
1 changed files with 4 additions and 1 deletions
|
@ -54,13 +54,16 @@ if [ "$1" = "status" ]; then
|
|||
indexInfo="OK"
|
||||
else
|
||||
echo "isIndexed=0"
|
||||
progressPercent="0.00%"
|
||||
if [ ${#indexedToBlock} -gt 0 ] && [ ${#blockchainHeight} -gt 0 ]; then
|
||||
progressPercent=$(printf %.2f $(echo "${indexedToBlock}/${blockchainHeight}*100" | bc -l))
|
||||
progressPercentRaw=$(echo "${indexedToBlock}/${blockchainHeight}*100" | bc -l 2>/dev/null)
|
||||
progressPercent=$(printf "%.2f" "${progressPercentRaw}" 2>/dev/null)
|
||||
indexInfo="Building ${progressPercent}% (please wait)"
|
||||
else
|
||||
indexInfo="Building (please wait)"
|
||||
fi
|
||||
echo "indexInfo='${indexInfo}'"
|
||||
echo "indexPrecent='${progressPercent}'"
|
||||
fi
|
||||
|
||||
echo "indexFinished=${indexFinished}"
|
||||
|
|
Loading…
Add table
Reference in a new issue