save space on info

This commit is contained in:
rootzoll 2018-11-13 20:05:08 +01:00
parent 1805d6528c
commit 7606944b91

View File

@ -75,16 +75,16 @@ if [ -n ${btc_path} ]; then
sync="OK"
sync_color="${color_green}"
sync_behind=" "
elif [ ${block_diff} -eq 1 ]; then # fully synced
elif [ ${block_diff} -eq 1 ]; then # fully synced
sync="OK"
sync_color="${color_green}"
sync_behind="-1 block"
elif [ ${block_diff} -le 10 ]; then # <= 2 blocks behind
sync="catchup"
elif [ ${block_diff} -le 10 ]; then # <= 2 blocks behind
sync=""
sync_color="${color_red}"
sync_behind="-${block_diff} blocks"
else
sync="progress"
sync=""
sync_color="${color_red}"
sync_behind="${sync_percentage}"
fi