Skip to content

Commit ddc4ba2

Browse files
committed
fix high CPU usage
1 parent 26050d5 commit ddc4ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chinadns.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ int main(int argc, char **argv) {
204204
FD_SET(remote_sock, &errorset);
205205
struct timeval timeout = {
206206
.tv_sec = 0,
207-
.tv_usec = 100,
207+
.tv_usec = 50 * 1000,
208208
};
209209
if (-1 == select(max_fd, &readset, NULL, &errorset, &timeout)) {
210210
ERR("select");

0 commit comments

Comments
 (0)