]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
more CountHourHist fixes
authorwessels <>
Wed, 12 Aug 1998 03:53:05 +0000 (03:53 +0000)
committerwessels <>
Wed, 12 Aug 1998 03:53:05 +0000 (03:53 +0000)
src/stat.cc

index a8c57058e27cac58e3afede174d3244750a22203..4dad89f302a7a11036ce5ff931a66ec73aa1e4bc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.276 1998/08/11 20:39:44 wessels Exp $
+ * $Id: stat.cc,v 1.277 1998/08/11 21:53:05 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -824,7 +824,7 @@ statAvgTick(void *notused)
        /* we have an hours worth of readings.  store previous hour */
        StatCounters *t = &CountHourHist[0];
        StatCounters *p = &CountHourHist[1];
-       StatCounters *c = &CountHist[N_COUNT_HIST];
+       StatCounters *c = &CountHist[N_COUNT_HIST-1];
        statCountersClean(CountHourHist + N_COUNT_HOUR_HIST - 1);
        xmemmove(p, t, (N_COUNT_HOUR_HIST - 1) * sizeof(StatCounters));
        statCountersCopy(t, c);