From 56525b7785bed32038d283d9a02267a64db91cd8 Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 21 Sep 2020 02:11:23 +0200 Subject: [PATCH] remove debug mode #2 --- g1-stats.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g1-stats.sh b/g1-stats.sh index 9ea1804..36e6e3d 100755 --- a/g1-stats.sh +++ b/g1-stats.sh @@ -21,9 +21,9 @@ indexhtml="$WEBPATH/index.html" echo -e "\n############# $day à $startTime #############\n" [[ -z $(which jq) || -z $(which bc) ]] && apt update && apt install jq bc echo "Initialisation ..." -TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa +#TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa TXBLOCKS=$(curl -s ${DUNITER}/blockchain/with/tx | jq '.result.blocks[]') -#TXBLOCKS=($(echo "$TXBLOCKS" | sort -hu | awk '{printf $1" "}')) +TXBLOCKS=($(echo "$TXBLOCKS" | sort -hu | awk '{printf $1" "}')) unset 'TXBLOCKS[${#TXBLOCKS[@]}-1]' membresPubkeys=$(curl -s ${DUNITER}/wot/members | jq -r '.results[].pubkey') #membresPubkeys=$(cat db/membresPubkeys) #kopa