feat: decrease timeout to 60 seconds

This commit is contained in:
Krzysztof kuhy Rudnicki 2025-05-04 19:25:59 +02:00
parent 50473f0fea
commit 3cd8512919

View File

@ -150,7 +150,7 @@ function prompt_for_math_solution() {
while true; do
current_time=$(date +%s)
elapsed=$((current_time - start_time))
remaining=$((120 - elapsed))
remaining=$((60 - elapsed))
if [[ $remaining -le 0 ]]; then
echo -ne "\r${YELLOW}Time remaining: 0 seconds${NC} "
@ -164,7 +164,7 @@ function prompt_for_math_solution() {
display_pid=$!
# Read user input with timeout
read -t 120 -r user_input
read -t 60 -r user_input
read_status=$?
# Kill the timer display