Author: j16sdiz
Date: 2008-09-04 16:00:12 +0000 (Thu, 04 Sep 2008)
New Revision: 22417

Modified:
   trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
Log:
show false pos only if it is supported

Modified: trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java       
2008-09-04 15:58:37 UTC (rev 22416)
+++ trunk/freenet/src/freenet/clients/http/StatisticsToadlet.java       
2008-09-04 16:00:12 UTC (rev 22417)
@@ -547,10 +547,12 @@
                row.addChild("td", 
fix1p2.format(1.0*storeWrites/nodeUptimeSeconds)+" /sec");
                row.addChild("td", 
fix1p2.format(1.0*cacheWrites/nodeUptimeSeconds)+" /sec");

-               row = storeSizeTable.addChild("tr");
-               row.addChild("td", "False Pos.");
-               row.addChild("td", thousendPoint.format(storeFalsePos));
-               row.addChild("td", thousendPoint.format(cacheFalsePos));
+               if (storeFalsePos != -1 || cacheFalsePos != -1) {
+                       row = storeSizeTable.addChild("tr");
+                       row.addChild("td", "False Pos.");
+                       row.addChild("td", thousendPoint.format(storeFalsePos));
+                       row.addChild("td", thousendPoint.format(cacheFalsePos));
+               }

                // location-based stats
                double nodeLoc=0.0;


Reply via email to