Author: toad
Date: 2008-09-01 22:58:44 +0000 (Mon, 01 Sep 2008)
New Revision: 22331

Modified:
   trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
Log:
Doh


Modified: trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java      
2008-09-01 22:56:09 UTC (rev 22330)
+++ trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java      
2008-09-01 22:58:44 UTC (rev 22331)
@@ -697,7 +697,7 @@
                double selectionRate = peerNodeStatus.getSelectionRate();
                int peerSelectionPercentage = 0;
                if(totalSelectionRate > 0)
-                       peerSelectionPercentage = (int) (selectionRate * 100 / 
selectionRate);
+                       peerSelectionPercentage = (int) (selectionRate * 100 / 
totalSelectionRate);
                HTMLNode peerRow = peerTable.addChild("tr", "class", 
"darknet_connections_"+(peerSelectionPercentage > 
PeerNode.SELECTION_PERCENTAGE_WARNING ? "warning" : "normal"));

                if(enablePeerActions) {


Reply via email to