10h = 36000000 ms

This commit is contained in:
fred 2021-09-20 22:04:51 +02:00
parent ff2b35dd30
commit 621da3e18c
1 changed files with 2 additions and 2 deletions

View File

@ -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)