From a46861a1eb8190283abce477b435b4ff5fe8e595 Mon Sep 17 00:00:00 2001 From: fluidvoice Date: Fri, 8 Mar 2019 10:16:52 -0300 Subject: [PATCH] fix display sync % --- home.admin/80scanLND.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home.admin/80scanLND.sh b/home.admin/80scanLND.sh index 6d0f839..f7871ea 100755 --- a/home.admin/80scanLND.sh +++ b/home.admin/80scanLND.sh @@ -46,7 +46,8 @@ scanstate="${item}/${total}" # get blockchain sync progress progress="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')" -progress=$(echo "${progress}*100" | bc) +#progress=$(echo "${progress}*100" | bc) +progress=$(echo $progress | awk '{printf( "%.2f%%", 100 * $1)}') # check if blockchain is still syncing heigh=6 @@ -88,4 +89,5 @@ fi # display progress to user sleep 3 -dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname})" --infobox "${infoStr}" ${heigh} ${width} \ No newline at end of file +temp=$(echo "scale=1; $(cat /sys/class/thermal/thermal_zone0/temp)/1000" | bc) +dialog --title " ${network} / ${chain} " --backtitle "RaspiBlitz (${hostname}) CPU: ${temp}°C" --infobox "${infoStr}" ${heigh} ${width} \ No newline at end of file