From: wessels <> Date: Wed, 12 Aug 1998 03:53:05 +0000 (+0000) Subject: more CountHourHist fixes X-Git-Tag: SQUID_3_0_PRE1~2916 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b23c4568d119c923bb19f77787f42fe104443c17;p=thirdparty%2Fsquid.git more CountHourHist fixes --- diff --git a/src/stat.cc b/src/stat.cc index a8c57058e2..4dad89f302 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -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);