From 8db9e5b15e48002988ab27e3c5b1e0759f98c48b Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 1 Jan 2024 03:45:36 +0100 Subject: [PATCH] correct G1AMOUNT calculation --- RUNTIME/VOEUX.refresh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RUNTIME/VOEUX.refresh.sh b/RUNTIME/VOEUX.refresh.sh index 03b041247..9eabf55f4 100755 --- a/RUNTIME/VOEUX.refresh.sh +++ b/RUNTIME/VOEUX.refresh.sh @@ -285,7 +285,7 @@ SECTOR="_${SECLAT}_${SECLON}" SECTORG1PUB=$(${MY_PATH}/../tools/keygen -t duniter "${UPLANETNAME}${SECTOR}" "${UPLANETNAME}${SECTOR}") ############################################################## GRATITUDE=$($MY_PATH/../tools/getcoins_from_gratitude_box.sh) -G1AMOUNT=$((GRATITUDE / 10)) +G1AMOUNT=$(echo "$GRATITUDE / 10" | bc -l | xargs printf "%.2f" | sed "s/,/./g" ) echo "***** PLAYER $PLAYER *************************************" echo "SEND ${GRATITUDE} ZEN = ${G1AMOUNT} G1 to ${SECTOR} WALLET ${SECTORG1PUB}"