Author: robert
Date: 2007-12-17 17:43:12 +0000 (Mon, 17 Dec 2007)
New Revision: 16660

Modified:
   trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
more integer division


Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java       
2007-12-17 17:34:19 UTC (rev 16659)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java       
2007-12-17 17:43:12 UTC (rev 16660)
@@ -531,8 +531,8 @@

                        row=storeSizeTable.addChild("tr");
                        row.addChild("td", "Distance Stats");
-                       row.addChild("td", 
fix3p1pct.format(storeLocationReports/storeKeys));
-                       row.addChild("td", 
fix3p1pct.format(cacheLocationReports/cachedKeys));
+                       row.addChild("td", 
fix3p1pct.format(1.0*storeLocationReports/storeKeys));
+                       row.addChild("td", 
fix3p1pct.format(1.0*cacheLocationReports/cachedKeys));
                }

        }


Reply via email to