Skip to content

Commit

Permalink
Merge pull request #31 from tzachi-dar/clone-ns-fixes
Browse files Browse the repository at this point in the history
Two fixes when copying an existing NS site.
  • Loading branch information
jamorham authored Dec 10, 2022
2 parents a7441dc + 3e1f993 commit 3f90b1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clone_nightscout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ clone_collection() {
echo $REST_ENDPOINT

END_TIME=$EPOCHSECONDS
#give some extratime for bad packets
let "END_TIME=END_TIME+3600"
#Date is rounded for days, so, we need to be at least one day ahead
let "END_TIME=END_TIME+100000"

rm /tmp/$collection_name.jq.json

# loop in half year intervals.
DELTA=15552000
# loop in intervals of 4 monthes.
DELTA=10000000

# loop until the time NS was created.
while [ $END_TIME -gt 1325447430 ]
Expand Down

0 comments on commit 3f90b1c

Please sign in to comment.