rename also the variable - to make sure this does not happen again
Costa Tsaousis (ktsaou) committed
Jan 18, 2018 at 22:01 UTC
c96fa48c7cbd5b6904169e958c104152193c07e6
1 file changed
+2
-2
src/socket.c
+2
-2
@@ -1386,14 +1386,14 @@ 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 = 1000; // in milliseconds
1389
+ int timeout_ms = 1000; // in milliseconds
1390
time_t last_check = now_boottime_sec();
1391
1392
netdata_thread_cleanup_push(poll_events_cleanup, &p);
1393
1394
while(!netdata_exit) {
1395
debug(D_POLLFD, "POLLFD: LISTENER: Waiting on %zu sockets...", p.max + 1);
1396
- retval = poll(p.fds, p.max + 1, timeout);
1396
+ retval = poll(p.fds, p.max + 1, timeout_ms);
1397
time_t now = now_boottime_sec();
1398
1399
if(unlikely(retval == -1)) {