Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -722,14 +722,16 @@ time_t now, expiration_time; pthread_t thread_id; long idx; int count; int valid; + int time_interval = 30; + int check_period = 90; while (1) { - for (count = 0; count < 10; count++) { - sleep_time.tv_sec = 30; + for (count = 0; count < (check_period / time_interval); count++) { + sleep_time.tv_sec = time_interval; sleep_time.tv_nsec = 0; nanosleep(&sleep_time, NULL); pthread_mutex_lock(&filed_sockettimeout_mutex);