Author: nextgens
Date: 2007-04-18 20:44:03 +0000 (Wed, 18 Apr 2007)
New Revision: 12799
Modified:
trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
Statistical toadlet: refactor a bit
Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-04-18 20:32:21 UTC (rev 12798)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-04-18 20:44:03 UTC (rev 12799)
@@ -268,8 +268,7 @@
getThreadNames(threadUsageList);
// rejection reasons box
- HTMLNode rejectReasonsInfobox =
nextTableCell.addChild("div", "class", "infobox");
- drawRejectReasonsBox(rejectReasonsInfobox);
+ drawRejectReasonsBox(nextTableCell);
// peer distribution box
overviewTableRow = overviewTable.addChild("tr");
@@ -290,7 +289,8 @@
this.writeReply(ctx, 200, "text/html", "OK",
pageNode.generate());
}
- private void drawRejectReasonsBox(HTMLNode rejectReasonsInfobox) {
+ private void drawRejectReasonsBox(HTMLNode nextTableCell) {
+ HTMLNode rejectReasonsInfobox = nextTableCell.addChild("div",
"class", "infobox");
rejectReasonsInfobox.addChild("div", "class", "infobox-header",
"Preemptive Rejection Reasons");
HTMLNode table = rejectReasonsInfobox.addChild("table");
node.nodeStats.getRejectReasonsTable(table);