mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 14:51:03 +01:00
#2318 factor 100 for real percent
This commit is contained in:
parent
f436a9dbe5
commit
ed4faadb20
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ if [ "$1" = "status" ]; then
|
|||
lastBlockchainHeight=$(($blockchainHeight -1))
|
||||
syncProgress=0
|
||||
if [ "${syncedToBlock}" != "" ] && [ "${blockchainHeight}" != "" ] && [ "${blockchainHeight}" != "0" ]; then
|
||||
syncProgress="$(echo "$syncedToBlock" "$blockchainHeight" | awk '{printf "%.2f", $1 / $2}')"
|
||||
syncProgress="$(echo "$syncedToBlock" "$blockchainHeight" | awk '{printf "%.2f", $1 / $2 * 100}')"
|
||||
fi
|
||||
echo "syncProgress=${syncProgress}%"
|
||||
if [ "${syncedToBlock}" = "${blockchainHeight}" ] || [ "${syncedToBlock}" = "${lastBlockchainHeight}" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue