Browse Source

formatting progress

master
Christian Rotzoll 6 years ago
parent
commit
b9db03587a
  1. 21
      home.admin/80scanLND.sh

21
home.admin/80scanLND.sh

@ -84,15 +84,24 @@ else
width=42
title="Node is Syncing (${scriptRuntime})"
# format progress values
if [ ${#syncProgress} -lt 6 ]; then
syncProgress=" ${syncProgress}"
# formatting progress values
if [ ${#syncProgress} -eq 0 ]; then
syncProgress="(waiting)"
elif [ ${#syncProgress} -lt 6 ]; then
syncProgress=" ${syncProgress} %"
else
syncProgress="${syncProgress} %"
fi
if [ ${#scanProgress} -lt 6 ]; then
scanProgress=" ${scanProgress}"
if [ ${#scanProgress} -eq 0 ]; then
scanProgress="(waiting)"
elif [ ${#scanProgress} -lt 6 ]; then
scanProgress=" ${scanProgress} %"
else
scanProgress="${scanProgress} %"
fi
infoStr=" Blockchain Progress : ${syncProgress} %\n Lightning Progress : ${scanProgress} %\n Please wait - this can take some time"
# setting info string
infoStr=" Blockchain Progress : ${syncProgress}\n Lightning Progress : ${scanProgress}\n Please wait - this can take some time"
fi

Loading…
Cancel
Save