Author: toad
Date: 2008-02-22 18:57:34 +0000 (Fri, 22 Feb 2008)
New Revision: 18102
Modified:
trunk/freenet/src/freenet/clients/http/QueueToadlet.java
Log:
Prefix explanation tooltip with blocks got/needed.
Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2008-02-22
17:28:38 UTC (rev 18101)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java 2008-02-22
18:57:34 UTC (rev 18102)
@@ -799,10 +799,11 @@
NumberFormat nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(1);
+ String prefix = '('+Integer.toString(fetched) + "/ " +
Integer.toString(min)+"): ";
if (finalized) {
- progressBar.addChild("div", new String[] {
"class", "title" }, new String[] { "progress_fraction_finalized",
L10n.getString("QueueToadlet.progressbarAccurate") }, nf.format((int) ((fetched
/ (double) min) * 1000) / 10.0) + '%');
+ progressBar.addChild("div", new String[] {
"class", "title" }, new String[] { "progress_fraction_finalized", prefix +
L10n.getString("QueueToadlet.progressbarAccurate") }, nf.format((int) ((fetched
/ (double) min) * 1000) / 10.0) + '%');
} else {
- progressBar.addChild("div", new String[] {
"class", "title" }, new String[] { "progress_fraction_not_finalized",
L10n.getString("QueueToadlet.progressbarNotAccurate") }, nf.format((int)
((fetched / (double) min) * 1000) / 10.0)+ '%');
+ progressBar.addChild("div", new String[] {
"class", "title" }, new String[] { "progress_fraction_not_finalized", prefix +
L10n.getString("QueueToadlet.progressbarNotAccurate") }, nf.format((int)
((fetched / (double) min) * 1000) / 10.0)+ '%');
}
}
return progressCell;