From: wessels <> Date: Tue, 21 Jul 1998 23:04:48 +0000 (+0000) Subject: stats for stews new comm_incoming mess X-Git-Tag: SQUID_3_0_PRE1~3026 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6ecdbc37d2e777e4a436688cd91a587df34bb25;p=thirdparty%2Fsquid.git stats for stews new comm_incoming mess --- diff --git a/src/stat.cc b/src/stat.cc index 4604b12f8a..f9bdb28f00 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.262 1998/07/20 20:21:09 wessels Exp $ + * $Id: stat.cc,v 1.263 1998/07/21 17:04:48 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -922,7 +922,8 @@ statCountersInitSpecial(StatCounters * C) * Cache Digest Stuff */ statHistEnumInit(&C->cd.on_xition_count, CacheDigestHashFuncCount); - statHistEnumInit(&C->comm_incoming, INCOMING_TOTAL_MAX); + statHistEnumInit(&C->comm_icp_incoming, INCOMING_ICP_MAX); + statHistEnumInit(&C->comm_http_incoming, INCOMING_HTTP_MAX); } /* add special cases here as they arrive */ @@ -938,7 +939,8 @@ statCountersClean(StatCounters * C) statHistClean(&C->icp.reply_svc_time); statHistClean(&C->dns.svc_time); statHistClean(&C->cd.on_xition_count); - statHistClean(&C->comm_incoming); + statHistClean(&C->comm_icp_incoming); + statHistClean(&C->comm_http_incoming); } /* add special cases here as they arrive */ @@ -960,7 +962,8 @@ statCountersCopy(StatCounters * dest, const StatCounters * orig) statHistCopy(&dest->icp.reply_svc_time, &orig->icp.reply_svc_time); statHistCopy(&dest->dns.svc_time, &orig->dns.svc_time); statHistCopy(&dest->cd.on_xition_count, &orig->cd.on_xition_count); - statHistCopy(&dest->comm_incoming, &orig->comm_incoming); + statHistCopy(&dest->comm_icp_incoming, &orig->comm_icp_incoming); + statHistCopy(&dest->comm_http_incoming, &orig->comm_http_incoming); } static void diff --git a/src/structs.h b/src/structs.h index 1d1a66ecd7..88aff8adc5 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1287,7 +1287,8 @@ struct _StatCounters { int select_loops; double cputime; struct timeval timestamp; - StatHist comm_incoming; + StatHist comm_icp_incoming; + StatHist comm_http_incoming; }; /* per header statistics */