From: wessels <> Date: Wed, 6 Sep 2000 01:40:18 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1862 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30ad80e8d7387aa3ec6f03003624057ef54fc4b1;p=thirdparty%2Fsquid.git DW: - The response time warning occurs too often when we check the one-minute average. I'm changing it to the five-minute average instead. --- diff --git a/src/stat.cc b/src/stat.cc index 629523c84b..8a2a8fc1d1 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.333 2000/06/27 22:06:04 hno Exp $ + * $Id: stat.cc,v 1.334 2000/09/05 19:40:18 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -908,7 +908,7 @@ statAvgTick(void *notused) NCountHourHist++; } if (Config.warnings.high_rptm > 0) { - int i = (int) statMedianSvc(1, MEDIAN_HTTP); + int i = (int) statMedianSvc(5, MEDIAN_HTTP); if (Config.warnings.high_rptm < i) debug(18, 0) ("WARNING: Median response time is %d milliseconds\n", i); }