Author: toad
Date: 2006-04-27 21:47:38 +0000 (Thu, 27 Apr 2006)
New Revision: 8592

Modified:
   trunk/freenet/src/freenet/clients/http/QueueToadlet.java
   trunk/freenet/src/freenet/node/Version.java
Log:
667: 1dp in % complete.

Modified: trunk/freenet/src/freenet/clients/http/QueueToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-04-27 
21:35:03 UTC (rev 8591)
+++ trunk/freenet/src/freenet/clients/http/QueueToadlet.java    2006-04-27 
21:47:38 UTC (rev 8592)
@@ -4,6 +4,7 @@
 import java.io.IOException;
 import java.net.URI;
 import java.net.URISyntaxException;
+import java.text.NumberFormat;
 import java.util.Iterator;
 import java.util.LinkedList;

@@ -357,7 +358,9 @@
                        buf.append("<td>UNKNOWN</td>\n");
                } else {
                        buf.append("<td>");
-                       buf.append((int)(frac * 100));
+                       NumberFormat nf = NumberFormat.getInstance();
+                       nf.setMaximumFractionDigits(1);
+                       buf.append(nf.format(frac));
                        buf.append("%</td>\n");
                }
        }

Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-04-27 21:35:03 UTC (rev 
8591)
+++ trunk/freenet/src/freenet/node/Version.java 2006-04-27 21:47:38 UTC (rev 
8592)
@@ -20,7 +20,7 @@
        public static final String protocolVersion = "1.0";

        /** The build number of the current revision */
-       private static final int buildNumber = 666;
+       private static final int buildNumber = 667;

        /** Oldest build of Fred we will talk to */
        private static final int lastGoodBuild = 591;


Reply via email to