null+****@clear*****
null+****@clear*****
2012年 5月 8日 (火) 13:58:03 JST
Susumu Yata 2012-05-08 13:58:03 +0900 (Tue, 08 May 2012) New Revision: 53fa458358a26e22d42b51f3c37b63dd641f5455 Log: Adjust the polling interval from 1000s to 1s. Modified files: src/suggest/groonga_suggest_httpd.c Modified: src/suggest/groonga_suggest_httpd.c (+2 -1) =================================================================== --- src/suggest/groonga_suggest_httpd.c 2012-05-08 13:05:13 +0900 (eb3e194) +++ src/suggest/groonga_suggest_httpd.c 2012-05-08 13:58:03 +0900 (a424267) @@ -23,6 +23,7 @@ #include <string.h> #include <sys/types.h> #include <sys/time.h> +#include <time.h> #include <stdlib.h> #include <unistd.h> #include <err.h> @@ -636,7 +637,7 @@ serve_threads(int nthreads, int port, const char *db_path, void *zmq_ctx, print_error("error in pthread_join() on thread %d.", i); } } else { - while (loop) { sleep(1000); } + while (loop) { sleep(1); } } /* join all httpd thread */