[freenet-cvs] r11958 - in trunk/freenet/src/freenet: client/async clients/http

nextgens at freenetproject.org nextgens at freenetproject.org
Sun Mar 4 18:38:23 UTC 2007


Author: nextgens
Date: 2007-03-04 18:38:22 +0000 (Sun, 04 Mar 2007)
New Revision: 11958

Modified:
   trunk/freenet/src/freenet/client/async/USKManager.java
   trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
Add a new metric on /stats to hunt #1147 down (temporaryBackgroundFetchersLRUSize)

Modified: trunk/freenet/src/freenet/client/async/USKManager.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKManager.java	2007-03-04 17:37:51 UTC (rev 11957)
+++ trunk/freenet/src/freenet/client/async/USKManager.java	2007-03-04 18:38:22 UTC (rev 11958)
@@ -255,4 +255,13 @@
 	public int getBackgroundFetcherByUSKSize(){
 		return backgroundFetchersByClearUSK.size();
 	}
+	
+	/**
+	 * The result of that method will be displayed on the Statistic Toadlet : it will help catching #1147 
+	 * Afterwards it should be removed: it's not usefull :)
+	 * @return the size of temporaryBackgroundFetchersLRU
+	 */
+	public int getTemporaryBackgroundFetchersLRU(){
+		return temporaryBackgroundFetchersLRU.size();
+	}
 }

Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java	2007-03-04 17:37:51 UTC (rev 11957)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java	2007-03-04 18:38:22 UTC (rev 11958)
@@ -209,6 +209,7 @@
 						activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers);
 					activityList.addChild("li", "FetcherByUSKSize:\u00a0" + node.clientCore.uskManager.getFetcherByUSKSize());
 					activityList.addChild("li", "BackgroundFetcherByUSKSize:\u00a0" + node.clientCore.uskManager.getBackgroundFetcherByUSKSize());
+					activityList.addChild("li", "temporaryBackgroundFetchersLRUSize:\u00a0" + node.clientCore.uskManager.getTemporaryBackgroundFetchersLRU());
 				}
 			}
 




More information about the cvs mailing list