From: hno <> Date: Thu, 28 Aug 2003 04:45:37 +0000 (+0000) Subject: Found a old STAT_GRAPHS patch laying around in my Squid source directories. X-Git-Tag: SQUID_3_0_PRE4~1235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79d15b05a38b626ae835cdfdf22d180297d7e428;p=thirdparty%2Fsquid.git Found a old STAT_GRAPHS patch laying around in my Squid source directories. This should make the STAT_GRAPHS define result in valid graphs again.. --- diff --git a/src/stat.cc b/src/stat.cc index 12a69619e7..baa5c20897 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,5 @@ - /* - * $Id: stat.cc,v 1.379 2003/07/17 22:22:53 wessels Exp $ + * $Id: stat.cc,v 1.380 2003/08/27 22:45:37 hno Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -1639,7 +1638,7 @@ statClientRequests(StoreEntry * s) #define GRAPH_PER_MIN(Y) \ for (i=0;i<(N_COUNT_HIST-2);i++) { \ - dt = tvSubDsec(CountHist[i].timestamp, CountHist[i+1].timestamp); \ + dt = tvSubDsec(CountHist[i+1].timestamp, CountHist[i].timestamp); \ if (dt <= 0.0) \ break; \ storeAppendPrintf(e, "%lu,%0.2f:", \ @@ -1649,7 +1648,7 @@ statClientRequests(StoreEntry * s) #define GRAPH_PER_HOUR(Y) \ for (i=0;i<(N_COUNT_HOUR_HIST-2);i++) { \ - dt = tvSubDsec(CountHourHist[i].timestamp, CountHourHist[i+1].timestamp); \ + dt = tvSubDsec(CountHourHist[i+1].timestamp, CountHourHist[i].timestamp); \ if (dt <= 0.0) \ break; \ storeAppendPrintf(e, "%lu,%0.2f:", \