From 621da3e18c1ff88f8f80201ef2cc53119b089a19 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 20 Sep 2021 22:04:51 +0200 Subject: [PATCH] 10h = 36000000 ms --- zen/ipns_TAG_refresh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)