From: hno <> Date: Wed, 29 Jan 2003 10:45:20 +0000 (+0000) Subject: date: 2003/01/27 17:18:36; author: wessels; state: Exp; lines: +4 -0 X-Git-Tag: SQUID_3_0_PRE1~416 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8fac8ca4cec602291315b56206aa077f6fca8c22;p=thirdparty%2Fsquid.git date: 2003/01/27 17:18:36; author: wessels; state: Exp; lines: +4 -0 increment statCounter.select_time in comm_select(), as we do for comm_poll(). This requires an otherwise unnecssary call to getCurrentTime(). --- diff --git a/src/comm_select.cc b/src/comm_select.cc index 2a81f64792..8a041564f8 100644 --- a/src/comm_select.cc +++ b/src/comm_select.cc @@ -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);