From: Zachary Vance Date: Tue, 20 Jun 2017 21:11:02 +0000 (-0700) Subject: Cap max execution time just in case X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=e270eb5241e0428c1bfd5ac8142e8a97c5e7103b;p=za3k.git Cap max execution time just in case --- diff --git a/cgi-bin/status.cgi b/cgi-bin/status.cgi index 22c3438..c5be5ea 100755 --- a/cgi-bin/status.cgi +++ b/cgi-bin/status.cgi @@ -9,6 +9,7 @@ if [[ "${QUERY_STRING}" =~ ^t=[0-9]+$ ]] then SECONDS="${QUERY_STRING#t=}" fi +if [ "$SECONDS" -gt 30 ]; SECONDS=5; fi export SECONDS echo ""