]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
poll_time off-by-one bugfix
authorwessels <>
Thu, 29 Aug 1996 02:11:49 +0000 (02:11 +0000)
committerwessels <>
Thu, 29 Aug 1996 02:11:49 +0000 (02:11 +0000)
src/comm.cc

index 12d59d75bb45d716cff3e890167fc3483161940a..c309037409f2334f03f7c7582d36989529108d10 100644 (file)
@@ -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);