mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 22:59:19 +02:00
fix display sync %
This commit is contained in:
parent
8ad3e67764
commit
53ac313d4d
@ -90,7 +90,7 @@ if [ -n ${btc_path} ]; then
|
||||
block_diff=$(expr ${block_chain} - ${block_verified})
|
||||
|
||||
progress="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')"
|
||||
sync_percentage=$(printf "%.2f%%" "$(echo $progress | awk '{print 100 * $1}')")
|
||||
sync_percentage=$(echo $progress | awk '{printf( "%.2f%%", 100 * $1)}')
|
||||
|
||||
if [ ${block_diff} -eq 0 ]; then # fully synced
|
||||
sync="OK"
|
||||
|
Loading…
x
Reference in New Issue
Block a user