Cleanup empty block in api response - Update cache warmer

This commit is contained in:
nymkappa
2022-03-08 16:55:49 +01:00
parent 2b5d972e8d
commit f23f7f1cfa
5 changed files with 29 additions and 25 deletions

View File

@@ -38,5 +38,13 @@ do for url in / \
curl -s "https://${hostname}${url}" >/dev/null
done
counter=1
while [ $counter -le 134 ]
do
curl -s "https://${hostname}/api/v1/mining/pool/${counter}/hashrate" >/dev/null
curl -s "https://${hostname}/api/v1/mining/pool/${counter}" >/dev/null
((counter++))
done
sleep 10
done