From: wessels <> Date: Thu, 29 Aug 1996 02:11:49 +0000 (+0000) Subject: poll_time off-by-one bugfix X-Git-Tag: SQUID_3_0_PRE1~5888 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89fb2544c85e10541f7efa10cd3c0f8555ae0543;p=thirdparty%2Fsquid.git poll_time off-by-one bugfix --- diff --git a/src/comm.cc b/src/comm.cc index 12d59d75bb..c309037409 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.59 1996/08/27 05:51:36 wessels Exp $ + * $Id: comm.cc,v 1.60 1996/08/28 20:11:49 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -730,7 +730,7 @@ int comm_select(sec) poll_time.tv_sec = 0; poll_time.tv_usec = 250000; #else - poll_time.tv_sec = sec > 1 ? 1 : 0; + poll_time.tv_sec = sec > 0 ? 1 : 0; poll_time.tv_usec = 0; #endif num = select(maxfd, &readfds, &writefds, &exceptfds, &poll_time);