STOP SWARM SYNC 1H BEFORE 20H12

This commit is contained in:
fred 2024-03-21 13:06:12 +01:00
parent 50ebc469ab
commit a8b6f46a14
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ while true; do
lastrun=$(cat ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats)
duree=$(expr ${MOATS} - $lastrun)
### STOP SWARM SYNC 1H BEFORE 20H12
[[ $(date +"%H%M") -gt 1912 ]] \
&& echo "$(date +"%H%M") : 20H12 is coming... " && continue
## FIXING TIC TAC FOR NODE & SWARM REFRESH ( 1H )
if [[ ${duree} -gt 3600000 ]]; then