From b088765b4a30780de1a2334a414f8795d1c61bd6 Mon Sep 17 00:00:00 2001 From: deicidus Date: Fri, 16 Jun 2023 09:14:53 -0700 Subject: [PATCH] fixed percent display --- spells/menu/bitcoin/bitcoin-status | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spells/menu/bitcoin/bitcoin-status b/spells/menu/bitcoin/bitcoin-status index 89cec8f..fa73320 100755 --- a/spells/menu/bitcoin/bitcoin-status +++ b/spells/menu/bitcoin/bitcoin-status @@ -44,8 +44,8 @@ get_status() { if [ "$sync_status" = "synced" ]; then install_status="installed, $running_status, synced" elif [ "$sync_status" = "syncing" ]; then - progress=$(bitcoin-cli getblockchaininfo | grep 'progress' | awk -F":" '{gsub(/,/, "", $2); printf "%.1f", $2*100}') - install_status="installed, $running_status, syncing $progress%" + progress=$(bitcoin-cli getblockchaininfo | grep 'progress' | awk -F":" '{gsub(/,/, "", $2); printf "%.1f%%", $2*100}') + install_status="installed, $running_status, syncing $progress" elif [ "$sync_status" = "unknown" ]; then install_status="installed, $running_status, not synced" elif [ "$sync_status" = "error" ]; then