Author: nextgens
Date: 2007-02-27 00:19:21 +0000 (Tue, 27 Feb 2007)
New Revision: 11925
Modified:
trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
Cosmetic change on the StatisticToadlet : move the statistic gathering box down
Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-02-26 23:13:38 UTC (rev 11924)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-02-27 00:19:21 UTC (rev 11925)
@@ -123,25 +123,6 @@
contentNode.addChild(core.alerts.createSummary());
- // Generate Dumps
- HTMLNode statGatheringBox =
contentNode.addChild(ctx.getPageMaker().getInfobox("Statistic gathering"));
-
- // Generate a Thread-Dump
- if(node.isUsingWrapper()){
- HTMLNode threadDumpForm =
ctx.addFormChild(statGatheringBox, "/", "threadDumpForm");
- threadDumpForm.addChild("input", new String[] { "type",
"name", "value" }, new String[] { "submit", "getThreadDump", "Generate a Thread
Dump" });
- }
-
- // BDB statistics dump
- HTMLNode JEStatsForm = ctx.addFormChild(statGatheringBox, "/",
"JEStatsForm");
- JEStatsForm.addChild("input", new String[] { "type", "name",
"value" }, new String[] { "submit", "getJEStatsDump", "Generate a JE Dump" });
-
- // Get logs
- HTMLNode logsList = statGatheringBox.addChild("ul");
- if(nodeConfig.config.get("logger").getBoolean("enabled"))
- logsList.addChild("li").addChild("a", new String[]{
"href", "target"}, new String[]{ "/?latestlog", "_new"}, "Get latest node's
logfile");
-
-
double swaps = (double)node.getSwaps();
double noSwaps = (double)node.getNoSwaps();
@@ -560,6 +541,26 @@
nodeCircleInfobox.addChild("div", "class",
"infobox-header", "Node\u00a0Location\u00a0Distribution (w/Swap\u00a0Age)");
HTMLNode nodeCircleTable =
nodeCircleInfobox.addChild("table");
addNodeCircle(nodeCircleTable);
+
+ // Generate Dumps
+ nextTableCell = overviewTableRow.addChild("td",
"class", "first");
+ HTMLNode statGatheringBox =
nextTableCell.addChild(ctx.getPageMaker().getInfobox("Statistic gathering"));
+
+ // Generate a Thread-Dump
+ if(node.isUsingWrapper()){
+ HTMLNode threadDumpForm =
ctx.addFormChild(statGatheringBox, "/", "threadDumpForm");
+ threadDumpForm.addChild("input", new
String[] { "type", "name", "value" }, new String[] { "submit", "getThreadDump",
"Generate a Thread Dump" });
+ }
+
+ // BDB statistics dump
+ HTMLNode JEStatsForm =
ctx.addFormChild(statGatheringBox, "/", "JEStatsForm");
+ JEStatsForm.addChild("input", new String[] {
"type", "name", "value" }, new String[] { "submit", "getJEStatsDump", "Generate
a JE Dump" });
+
+ // Get logs
+ HTMLNode logsList =
statGatheringBox.addChild("ul");
+
if(nodeConfig.config.get("logger").getBoolean("enabled"))
+ logsList.addChild("li").addChild("a",
new String[]{ "href", "target"}, new String[]{ "/?latestlog", "_new"}, "Get
latest node's logfile");
+
}
}