Update of /cvsroot/freenet/freenet/src/freenet/client/http
In directory sc8-pr-cvs1:/tmp/cvs-serv25229/src/freenet/client/http

Modified Files:
        NodeStatusServlet.java 
Log Message:
don't show RT histogram if not using CPAlgoRT. Fix caption on successful inserts page. 
Implement log rotation with optional compression using external native gzip. Logging. 
New diags insertRoutingSuccessRatio, insertNonRoutingSuccessRatio, 
insertFailRoutingNonRoutingRatio. Improved toString() on some objects. Ignore 
QueryRejected.hopsToLive - use hopsToLive/2. Give StoreData a much longer timeout when 
we go to AWSD from an insert.


Index: NodeStatusServlet.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/client/http/NodeStatusServlet.java,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- NodeStatusServlet.java      30 Aug 2003 23:16:51 -0000      1.68
+++ NodeStatusServlet.java      2 Sep 2003 17:05:21 -0000       1.69
@@ -19,6 +19,7 @@
 import freenet.node.NodeReference;
 import freenet.node.rt.RTDiagSnapshot;
 import freenet.node.rt.NGRoutingTable;
+import freenet.node.rt.CPAlgoRoutingTable;
 import freenet.node.rt.TimeEstimator;
 import freenet.node.LoadStats;
 import freenet.diagnostics.Diagnostics;
@@ -616,13 +617,13 @@
         pw.println("    <li> <a href=\"" + baseURL +"nodestatus.html\"> Node 
Reference Status </a><p>");
         pw.println("    <li> Histograms ");
         pw.println("        <ul>");
-
-        pw.println("            <li> <a href=\"" + baseURL + "key_histogram.txt\">" +
-                   " Histogram of the keys in the node's routing table. </a>" +
-                   "<a href=\"" + baseURL + 
"key_histogram_detail.txt\">(detail)</a><br>");
-        pw.println("            <a href= \"" + baseURL + 
"key_histogram_data.txt\">(flat ascii)</a>" +
-                   "<a href=\"" + baseURL + 
"key_histogram_data_detail.txt\">(detail)</a><br>");
-
+       if(Main.origRT instanceof CPAlgoRoutingTable) {
+           pw.println("            <li> <a href=\"" + baseURL + 
"key_histogram.txt\">" +
+                      " Histogram of the keys in the node's routing table. </a>" +
+                      "<a href=\"" + baseURL + 
"key_histogram_detail.txt\">(detail)</a><br>");
+           pw.println("            <a href= \"" + baseURL + 
"key_histogram_data.txt\">(flat ascii)</a>" +
+                      "<a href=\"" + baseURL + 
"key_histogram_data_detail.txt\">(detail)</a><br>");
+       }
         pw.println("            <li> <a href=\"" + baseURL + 
"inbound_request_histogram.txt\">" +
                    " Histogram of inbound request search keys. </a>" +
                    "<a href=\"" + baseURL + 
"inbound_request_histogram_detail.txt\">(detail)</a><br>");
@@ -900,7 +901,8 @@
        resp.setStatus(HttpServletResponse.SC_OK);
        resp.setContentType("text/plain");
        PrintWriter pw = resp.getWriter();
-       pw.println("Probability of success of an incoming request");
+       pw.println("Probability of success of an incoming "+
+                  (inserts?"insert":"request"));
        if(inserts) {
            boolean b = false;
            if(node.successInsertDistribution == null) {

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to