]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
require both start and stop to be non-zero for ICP query svc time counting
authorwessels <>
Thu, 2 Apr 1998 00:24:09 +0000 (00:24 +0000)
committerwessels <>
Thu, 2 Apr 1998 00:24:09 +0000 (00:24 +0000)
src/client_side.cc

index 7bd604b79f56c0438dfd5f5a7b3f323d0187d864..b1451dbef5f34737f4a35d29df23a3001da0a542 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.246 1998/04/01 00:07:53 wessels Exp $
+ * $Id: client_side.cc,v 1.247 1998/04/01 17:24:09 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -512,7 +512,7 @@ clientUpdateCounters(clientHttpRequest * http)
        break;
     }
     i = &http->request->hier.icp;
-    if (0 != i->stop.tv_sec)
+    if (0 != i->stop.tv_sec && 0 != i->start.tv_sec)
        statHistCount(&Counter.icp.query_svc_time, tvSubUsec(i->start, i->stop));
 }