Skip to content

Commit

Permalink
Fix calcul uncles stratum bug
Browse files Browse the repository at this point in the history
  • Loading branch information
casse-boubou committed May 13, 2023
1 parent 5692141 commit d38ef6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2pool/rootfs/etc/services.d/status_commande/run
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function CALCUL_UNCLES_STRATUM {
GET_JSON $MINER_INFO /tmp/get_json/miner_info.json
if [[ $(jq '.shares[1].uncles' /tmp/get_json/miner_info.json) -gt $(</tmp/variables/oncles.txt) ]] ; then
NB_UNCLES_FOUND=$(( $(jq '.shares[1].uncles' /tmp/get_json/miner_info.json) - $(</tmp/variables/oncles.txt) ))
else NB_UNCLES_FOUND=0
fi
printf $NB_UNCLES_FOUND
}
Expand Down

0 comments on commit d38ef6b

Please sign in to comment.