]> git.za3k.com Git - za3k.git/commitdiff
Cap max execution time just in case
authorZachary Vance <za3k@za3k.com>
Tue, 20 Jun 2017 21:11:02 +0000 (14:11 -0700)
committerZachary Vance <za3k@za3k.com>
Tue, 20 Jun 2017 21:11:02 +0000 (14:11 -0700)
cgi-bin/status.cgi

index 22c3438f77da7e9dd6b55d8d1859943bfc6f2b5b..c5be5ea61bff208b605f5cbf7d5effef0aeccc1d 100755 (executable)
@@ -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 "<html>"