Author: j16sdiz
Date: 2008-09-08 13:09:13 +0000 (Mon, 08 Sep 2008)
New Revision: 22563
Modified:
trunk/freenet/src/freenet/node/NetworkIDManager.java
Log:
comment
Modified: trunk/freenet/src/freenet/node/NetworkIDManager.java
===================================================================
--- trunk/freenet/src/freenet/node/NetworkIDManager.java 2008-09-08
13:08:50 UTC (rev 22562)
+++ trunk/freenet/src/freenet/node/NetworkIDManager.java 2008-09-08
13:09:13 UTC (rev 22563)
@@ -748,7 +748,7 @@
private double getSetwisePingAverage(PeerNode thisPeer, Collection
toThesePeers) {
Iterator i=toThesePeers.iterator();
double accum=0.0;
- if (!i.hasNext()) {
+ if (!i.hasNext()) { // FIXME this skip the first element,
investigate if is this intentional
//why yes, we have GREAT connectivity to nobody!
Logger.error(this, "getSetwisePingAverage to nobody?");
return 1.0;
@@ -764,7 +764,7 @@
PeerNode retval=null;
double best=-1.0;
Iterator i=ofThese.iterator();
- if (!i.hasNext()) {
+ if (!i.hasNext()) { // FIXME this skip the first element,
investigate if is this intentional
//why yes, we have GREAT connectivity to nobody!
Logger.error(this, "findBestSetwisePingAverage to
nobody?");
return null;