Update of /cvsroot/freenet/freenet/src/freenet/node/rt
In directory sc8-pr-cvs1:/tmp/cvs-serv30970

Modified Files:
        StandardNodeEstimator.java 
Log Message:
Fix an in transferFailed spotted by Ian,  Use pLegitDNF when our guess has
no data.  edt


Index: StandardNodeEstimator.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/StandardNodeEstimator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StandardNodeEstimator.java  29 Sep 2003 23:16:47 -0000      1.3
+++ StandardNodeEstimator.java  30 Sep 2003 23:52:45 -0000      1.4
@@ -154,6 +154,8 @@
                double pDNF = 
                        epDNFGivenConnectionAndNotRejectedOrSearchFailed.
                        guessProbability(k);
+               if (pDNF==0)
+                       pDNF = pLegitDNF;
                double tDNF = etDNF.guessTime(k) * htl;
                double pNotConnectFailedOrSearchFailed =
                        (1 - pConnectFailed) * (1- pSearchFailed);
@@ -220,7 +222,7 @@
                rpDNF.report(0.0);
                // transferFailed is a peer event to dataNotFound, transferSucceeded
                // and searchFailed
-               rtTransferFailed.report(size);
+               rtTransferFailed.report(time);
                Core.logger.log(this, "Transfer failed in "+time+"ms ("+
                                                size+" bytes) on "+ref, new 
Exception("debug"), 
                                                Logger.DEBUG);

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to