Remember to update new API everywhere (fix cron restart)

This commit is contained in:
30hours 2023-12-05 13:32:03 +00:00
parent e9897e16fa
commit ba35a6cebb

View file

@ -3,8 +3,8 @@
# Run script with a crontab to automatically restart on error.
# Checks the API to see if data is still being pushed through.
FIRST_CHAR=$(curl -s 127.0.0.1:3000/map | head -c1)
TIMESTAMP=$(curl -s 127.0.0.1:3000/map | head -c23 | tail -c10)
FIRST_CHAR=$(curl -s 127.0.0.1:3000/api/map | head -c1)
TIMESTAMP=$(curl -s 127.0.0.1:3000/api/map | head -c23 | tail -c10)
CURR_TIMESTAMP=$(date +%s)
DIFF_TIMESTAMP=$(($CURR_TIMESTAMP-$TIMESTAMP))