From ba35a6cebbb3c9b4e6b1419388f8eb4793437dce Mon Sep 17 00:00:00 2001 From: 30hours Date: Tue, 5 Dec 2023 13:32:03 +0000 Subject: [PATCH] Remember to update new API everywhere (fix cron restart) --- script/blah2.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/blah2.bash b/script/blah2.bash index 67f4475..09e91d3 100755 --- a/script/blah2.bash +++ b/script/blah2.bash @@ -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))