Skip to content

Commit

Permalink
Automated Change by GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
okunze authored and github-actions[bot] committed Mar 8, 2024
1 parent 693b20a commit 7e0efe0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/argon1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ echo "*************"
# Check time if need to 'fix'
NEEDSTIMESYNC=0
LOCALTIME=$(date -u +%s%N | cut -b1-10)
GLOBALTIME=$(curl -s 'https://worldtimeapi.org/api/ip.txt' | grep unixtime | cut -b11-20)
GLOBALTIME=$(curl -s 'http://worldtimeapi.org/api/ip.txt' | grep unixtime | cut -b11-20)
TIMEDIFF=$((GLOBALTIME-LOCALTIME))
echo "Local $LOCALTIME vs Global $GLOBALTIME $TIMEDIFF"

# about 26hrs, max timezone difference
if [ $TIMEDIFF -gt 100000 ]
Expand Down

0 comments on commit 7e0efe0

Please sign in to comment.