Author: toad
Date: 2008-03-01 15:33:25 +0000 (Sat, 01 Mar 2008)
New Revision: 18289
Modified:
trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
Show the current node location in the swap stats box.
Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2008-03-01 15:23:47 UTC (rev 18288)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2008-03-01 15:33:25 UTC (rev 18289)
@@ -600,6 +600,7 @@
private void drawSwapStatsBox(HTMLNode locationSwapInfobox, long
nodeUptimeSeconds, double swaps, double noSwaps) {
locationSwapInfobox.addChild("div", "class", "infobox-header",
"Location swaps");
+ double location = node.getLocation();
int startedSwaps = node.getStartedSwaps();
int swapsRejectedAlreadyLocked =
node.getSwapsRejectedAlreadyLocked();
int swapsRejectedNowhereToGo =
node.getSwapsRejectedNowhereToGo();
@@ -612,6 +613,7 @@
HTMLNode locationSwapInfoboxContent =
locationSwapInfobox.addChild("div", "class", "infobox-content");
HTMLNode locationSwapList =
locationSwapInfoboxContent.addChild("ul");
+ locationSwapList.addChild("li", "location:\u00a0" + location);
if (swaps > 0.0) {
locationSwapList.addChild("li",
"locChangeSession:\u00a0" + fix1p6sci.format(locChangeSession));
locationSwapList.addChild("li",
"locChangePerSwap:\u00a0" + fix1p6sci.format(locChangeSession/swaps));