From: wessels <> Date: Sun, 19 Jan 1997 15:10:51 +0000 (+0000) Subject: add auto ref age to stats X-Git-Tag: SQUID_3_0_PRE1~5190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35feb4aad4b4b06c2c67d74e0c0704595ea5ec29;p=thirdparty%2Fsquid.git add auto ref age to stats --- diff --git a/src/stat.cc b/src/stat.cc index e355dfd1e7..04f44bf84e 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.117 1997/01/15 18:41:48 wessels Exp $ + * $Id: stat.cc,v 1.118 1997/01/19 08:10:51 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -761,6 +761,9 @@ info_get(const cacheinfo * obj, StoreEntry * sentry) storeGetSwapSize() >> 10); storeAppendPrintf(sentry, "{\tStorage Mem size:\t%d KB}\n", store_mem_size >> 10); + if (Config.referenceAge < 0) + storeAppendPrintf(sentry, "{\tStorage LRU Expiration Age:\t%d days}\n", + (int) storeExpiredReferenceAge()); #if HAVE_GETRUSAGE && defined(RUSAGE_SELF) storeAppendPrintf(sentry, "{Resource usage for %s:}\n", appname); diff --git a/src/store.cc b/src/store.cc index be11a56451..16c9531c5c 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.194 1997/01/19 00:16:02 wessels Exp $ + * $Id: store.cc,v 1.195 1997/01/19 08:10:52 wessels Exp $ * * DEBUG: section 20 Storeage Manager * AUTHOR: Harvest Derived @@ -245,7 +245,6 @@ static void storeSetPrivateKey _PARAMS((StoreEntry *)); static void storeDoRebuildFromDisk _PARAMS((void *data)); static void storeRebuiltFromDisk _PARAMS((struct storeRebuild_data * data)); static unsigned int getKeyCounter _PARAMS((void)); -static time_t storeExpiredReferenceAge _PARAMS((void)); /* Now, this table is inaccessible to outsider. They have to use a method * to access a value in internal storage data structure. */ @@ -2779,7 +2778,7 @@ storeCheckExpired(const StoreEntry * e) } /* gnuplot> plot 724**((x)+1)*60 */ -static time_t +time_t storeExpiredReferenceAge(void) { int half;