Author: robert
Date: 2007-12-18 16:14:27 +0000 (Tue, 18 Dec 2007)
New Revision: 16684
Modified:
trunk/freenet/src/freenet/node/NodeStats.java
Log:
Display number of requests as in integer, not a double
Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java 2007-12-18 16:13:43 UTC
(rev 16683)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2007-12-18 16:14:27 UTC
(rev 16684)
@@ -2,6 +2,7 @@
import java.io.File;
import java.text.DecimalFormat;
+import java.text.NumberFormat;
import java.util.Arrays;
import java.util.Comparator;
@@ -990,6 +991,7 @@
}
private final DecimalFormat fix3p3pct = new DecimalFormat("##0.000%");
+ private final NumberFormat thousendPoint = NumberFormat.getInstance();
public void fillSuccessRateBox(HTMLNode parent) {
HTMLNode list = parent.addChild("table", "border", "0");
@@ -1018,10 +1020,10 @@
row.addChild("td", names[i]);
if (averages[i].countReports()==0) {
row.addChild("td", "-");
- row.addChild("td", "0.0");
+ row.addChild("td", "0");
} else {
- row.addChild("td",
fix3p3pct.format(averages[i].currentValue()));
- row.addChild("td",
Double.toString(averages[i].countReports()));
+ row.addChild("td",
fix3p3pct.format(averages[i].currentValue()));
+ row.addChild("td",
thousendPoint.format(averages[i].countReports()));
}
}
}