diff --git a/zen/ipns_TAG_refresh.sh b/zen/ipns_TAG_refresh.sh index 3d0d711..825f423 100755 --- a/zen/ipns_TAG_refresh.sh +++ b/zen/ipns_TAG_refresh.sh @@ -70,7 +70,7 @@ do timestamp=$(date -u +%s%N | cut -b1-13) STAMPDIFF=$((timestamp - TIMESTAMP)) echo "${mediakey} LAST UPDATED $STAMPDIFF milliseconds AGO" - [ $STAMPDIFF -lt 21600000 ] && continue # 6h = 21600000 ms + [ $STAMPDIFF -lt 21600000 ] && continue # 6h = 21600000 ms , 10h = 36000000 ms source=$(echo $mediakey | cut -d '_' -f 1) @@ -229,7 +229,7 @@ for ipnslink in $(ls ~/.zen/PIN/*/IPNSLINK 2>/dev/null | shuf ); do timestamp=$(date -u +%s%N | cut -b1-13) STAMPDIFF=$((timestamp - TIMESTAMP)) echo "PIN WAS LAST UPDATED $STAMPDIFF milliseconds AGO" - [ $STAMPDIFF -lt 43200000 ] && continue # 12h = 43200000 ms + [ $STAMPDIFF -lt 39600000 ] && continue # 11h = 39600000 ms / 12h = 43200000 ms echo "ADD TO IPFS" NEWIPFS=$(ipfs add -rHq /tmp/${mediakey}/ | tail -n 1)