Author: robert
Date: 2007-12-14 23:39:56 +0000 (Fri, 14 Dec 2007)
New Revision: 16553
Modified:
trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
Fix integer division
Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-12-14 23:33:55 UTC (rev 16552)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
2007-12-14 23:39:56 UTC (rev 16553)
@@ -437,8 +437,8 @@
row=storeSizeTable.addChild("tr");
row.addChild("td", "Utilization");
- row.addChild("td", fix3p1pct.format(storeKeys/maxStoreKeys));
- row.addChild("td", fix3p1pct.format(cachedKeys/maxCachedKeys));
+ row.addChild("td",
fix3p1pct.format(1.0*storeKeys/maxStoreKeys));
+ row.addChild("td",
fix3p1pct.format(1.0*cachedKeys/maxCachedKeys));
row=storeSizeTable.addChild("tr");
row.addChild("td", "Read-Requests");