From b23c4568d119c923bb19f77787f42fe104443c17 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 12 Aug 1998 03:53:05 +0000 Subject: [PATCH] more CountHourHist fixes --- src/stat.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2