mirror of
https://github.com/30hours/blah2.git
synced 2024-11-08 12:25:42 +00:00
Remember to update new API everywhere (fix cron restart)
This commit is contained in:
parent
e9897e16fa
commit
ba35a6cebb
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@
|
||||||
# Run script with a crontab to automatically restart on error.
|
# Run script with a crontab to automatically restart on error.
|
||||||
# Checks the API to see if data is still being pushed through.
|
# Checks the API to see if data is still being pushed through.
|
||||||
|
|
||||||
FIRST_CHAR=$(curl -s 127.0.0.1:3000/map | head -c1)
|
FIRST_CHAR=$(curl -s 127.0.0.1:3000/api/map | head -c1)
|
||||||
TIMESTAMP=$(curl -s 127.0.0.1:3000/map | head -c23 | tail -c10)
|
TIMESTAMP=$(curl -s 127.0.0.1:3000/api/map | head -c23 | tail -c10)
|
||||||
CURR_TIMESTAMP=$(date +%s)
|
CURR_TIMESTAMP=$(date +%s)
|
||||||
DIFF_TIMESTAMP=$(($CURR_TIMESTAMP-$TIMESTAMP))
|
DIFF_TIMESTAMP=$(($CURR_TIMESTAMP-$TIMESTAMP))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue