Browse Source

% fixed this time maybe

main
deicidus 1 year ago
parent
commit
22de81f9db
  1. 4
      spells/menu/bitcoin/bitcoin-status

4
spells/menu/bitcoin/bitcoin-status

@ -44,8 +44,8 @@ get_status() {
if [ "$sync_status" = "synced" ]; then if [ "$sync_status" = "synced" ]; then
install_status="installed, $running_status, synced" install_status="installed, $running_status, synced"
elif [ "$sync_status" = "syncing" ]; then elif [ "$sync_status" = "syncing" ]; then
progress=$(bitcoin-cli getblockchaininfo | grep 'progress' | awk -F":" '{gsub(/,/, "", $2); printf "%.1f%%", $2*100}') progress=$(bitcoin-cli getblockchaininfo | grep 'progress' | awk -F":" '{gsub(/,/, "", $2); printf "%.2f", $2*100}')
install_status="installed, $running_status, syncing $progress" install_status="installed, $running_status, syncing $progress%%"
elif [ "$sync_status" = "unknown" ]; then elif [ "$sync_status" = "unknown" ]; then
install_status="installed, $running_status, not synced" install_status="installed, $running_status, not synced"
elif [ "$sync_status" = "error" ]; then elif [ "$sync_status" = "error" ]; then

Loading…
Cancel
Save