]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add auto ref age to stats
authorwessels <>
Sun, 19 Jan 1997 15:10:51 +0000 (15:10 +0000)
committerwessels <>
Sun, 19 Jan 1997 15:10:51 +0000 (15:10 +0000)
src/stat.cc
src/store.cc

index e355dfd1e73e8e73331c0a07c6a80923cdea7e9a..04f44bf84eaad095e5eff94ba60131d42661934f 100644 (file)
@@ -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);
index be11a56451f5da2a6bca71d7cf2bfc19ce330e02..16c9531c5c7953642fadbf4e591ba93e0ec4d227 100644 (file)
@@ -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;