[freenet-cvs] r13510 - trunk/freenet/src/freenet/node

zothar at freenetproject.org zothar at freenetproject.org
Sun Jun 10 20:02:16 UTC 2007


Author: zothar
Date: 2007-06-10 20:02:16 +0000 (Sun, 10 Jun 2007)
New Revision: 13510

Modified:
   trunk/freenet/src/freenet/node/NodeStats.java
Log:
FCP exported stats should not have holes for some values simply because no peers happen to be connected at the moment.

Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java	2007-06-10 20:01:10 UTC (rev 13509)
+++ trunk/freenet/src/freenet/node/NodeStats.java	2007-06-10 20:02:16 UTC (rev 13510)
@@ -734,7 +734,6 @@
 		fs.put("numberOfARKFetchers", node.getNumARKFetchers());
 
 
-		if(numberOfConnected > 0) { // it clashes if there is no peer )> no traffic
 			long[] total = IOStatisticCollector.getTotalIO();
 			long total_output_rate = (total[0]) / nodeUptimeSeconds;
 			long total_input_rate = (total[1]) / nodeUptimeSeconds;
@@ -814,7 +813,6 @@
 			fs.put("swapsRejectedRateLimit", swapsRejectedRateLimit);
 			fs.put("swapsRejectedLoop", swapsRejectedLoop);
 			fs.put("swapsRejectedRecognizedID", swapsRejectedRecognizedID);
-		}
 		long fix32kb = 32 * 1024;
 		long cachedKeys = node.getChkDatacache().keyCount();
 		long cachedSize = cachedKeys * fix32kb;




More information about the cvs mailing list