Update main.c

Timeout correction(need to test)