]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
date: 2003/01/27 17:18:36; author: wessels; state: Exp; lines: +4 -0
authorhno <>
Wed, 29 Jan 2003 10:45:20 +0000 (10:45 +0000)
committerhno <>
Wed, 29 Jan 2003 10:45:20 +0000 (10:45 +0000)
increment statCounter.select_time in comm_select(), as we do for
comm_poll().  This requires an otherwise unnecssary call to
getCurrentTime().

src/comm_select.cc

index 2a81f6479276ebc381dfb2ddf5a7c18f185de697..8a041564f87459a89b824caa91d1521e8afe2c6c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm_select.cc,v 1.65 2003/01/23 00:37:19 robertc Exp $
+ * $Id: comm_select.cc,v 1.66 2003/01/29 03:45:20 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  *
@@ -344,7 +344,9 @@ comm_select(int msec)
     double timeout = current_dtime + (msec / 1000.0);
     fde *F;
     do {
+       double start;
        getCurrentTime();
+       start = current_dtime;
 #if DELAY_POOLS
        FD_ZERO(&slowfds);
 #endif
@@ -566,6 +568,8 @@ comm_select(int msec)
            }
        }
 #endif
+       getCurrentTime();
+       statCounter.select_time += (current_dtime - start);
        return COMM_OK;
     }
     while (timeout > current_dtime);