Skip to content

Commit

Permalink
fix high CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Jan 1, 2015
1 parent 26050d5 commit ddc4ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chinadns.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ int main(int argc, char **argv) {
FD_SET(remote_sock, &errorset);
struct timeval timeout = {
.tv_sec = 0,
.tv_usec = 100,
.tv_usec = 50 * 1000,
};
if (-1 == select(max_fd, &readset, NULL, &errorset, &timeout)) {
ERR("select");
Expand Down

0 comments on commit ddc4ba2

Please sign in to comment.