Extend by 30 mins instead of 10

This commit is contained in:
2020-07-12 21:27:31 +00:00
parent c8eb575e54
commit 81d41f0885

View File

@@ -16,8 +16,8 @@ silent_exitcode() {
} }
extend_ttl() { extend_ttl() {
# Extend time to live 10 minutes at a time # Extend time to live 30 minutes at a time
new_ttl="$(date -d '+10 min' +%s)" new_ttl="$(date -d '+30 min' +%s)"
old_ttl="$(date -d "$(cat "$LIVE_UNTIL")" +%s)" old_ttl="$(date -d "$(cat "$LIVE_UNTIL")" +%s)"
if [ ! -f "$LIVE_UNTIL" ] || [ "$new_ttl" -ge "$old_ttl" ]; then if [ ! -f "$LIVE_UNTIL" ] || [ "$new_ttl" -ge "$old_ttl" ]; then
# If LIVE_UNTIL file not existing or new time to live longer # If LIVE_UNTIL file not existing or new time to live longer