Extend by 30 mins instead of 10
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user