From ce21bbf8f7c7bfe2f1d60a2a27294edf5f0ee2cb Mon Sep 17 00:00:00 2001 From: serassio <> Date: Sun, 17 Feb 2008 17:15:55 +0000 Subject: [PATCH] Clean up a unused reference to the statCounter.syscalls.polls removed counter --- src/comm_select.cc | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/comm_select.cc b/src/comm_select.cc index 32934ff689..7c752dbc1e 100644 --- a/src/comm_select.cc +++ b/src/comm_select.cc @@ -1,6 +1,6 @@ /* - * $Id: comm_select.cc,v 1.84 2008/02/12 23:02:13 rousskov Exp $ + * $Id: comm_select.cc,v 1.85 2008/02/17 10:15:55 serassio Exp $ * * DEBUG: section 5 Socket Functions * @@ -231,11 +231,7 @@ comm_check_incoming_select_handlers(int nfds, int *fds) getCurrentTime(); -#if USE_POLL - statCounter.syscalls.polls++; -#else statCounter.syscalls.selects++; -#endif if (select(maxfd, &read_mask, &write_mask, NULL, &zero_tv) < 1) return incoming_sockets_accepted; @@ -443,11 +439,7 @@ comm_select(int msec) for (;;) { poll_time.tv_sec = msec / 1000; poll_time.tv_usec = (msec % 1000) * 1000; -#if USE_POLL - statCounter.syscalls.polls++; -#else statCounter.syscalls.selects++; -#endif num = select(maxfd, &readfds, &writefds, NULL, &poll_time); statCounter.select_loops++; @@ -718,12 +710,7 @@ examine_select(fd_set * readfds, fd_set * writefds) else continue; -#if USE_POLL - statCounter.syscalls.polls++; -#else statCounter.syscalls.selects++; -#endif - errno = 0; if (!fstat(fd, &sb)) { -- 2.47.2