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

Modified Files:
      Tag: stable
        ResponseTimeEstimator.java 
Log Message:
5031: Fix a substantial NGRouting bug. Found by Niklas Bergh.


Index: ResponseTimeEstimator.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/rt/ResponseTimeEstimator.java,v
retrieving revision 1.12.2.2
retrieving revision 1.12.2.3
diff -u -w -r1.12.2.2 -r1.12.2.3
--- ResponseTimeEstimator.java  1 Nov 2003 16:55:34 -0000       1.12.2.2
+++ ResponseTimeEstimator.java  1 Nov 2003 21:16:50 -0000       1.12.2.3
@@ -255,6 +255,12 @@
            BigInteger bi = key[index1];
            key[index1] = key[index2];
            key[index2] = bi;
+           int ti = time[index1];
+           time[index1] = time[index2];
+           time[index2] = ti;
+           double si = sensitivity[index1];
+           sensitivity[index1] = sensitivity[index2];
+           sensitivity[index2] = si;
        }
        
        public final int size() {

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

Reply via email to