lower the cpu usage of poll
Costa Tsaousis (ktsaou) committed
Jan 18, 2018 at 21:57 UTC
04b0593fe2469d7f122b9032312a647ce9a9f7ec
1 file changed
+1
-1
src/socket.c
+1
-1
@@ -1386,7 +1386,7 @@ void poll_events(LISTEN_SOCKETS *sockets
1386
info("POLLFD: LISTENER: listening on '%s'", (sockets->fds_names[i])?sockets->fds_names[i]:"UNKNOWN");
1387
}
1388
1389
- int timeout = 1; // wait forever
1389
+ int timeout = 1000; // in milliseconds
1390
time_t last_check = now_boottime_sec();
1391
1392
netdata_thread_cleanup_push(poll_events_cleanup, &p);