Update of /cvsroot/freenet/freenet/src/freenet
In directory sc8-pr-cvs1:/tmp/cvs-serv6632/src/freenet

Modified Files:
        OpenConnectionManager.java 
Log Message:
Made PeerHandler mode the default OCM HTML mode.
Made some core methods in ResponseTimeEstimator and RoutingPointStore support 
caller-choosen datasets.
Modified RoutingPointStore to allow for more flexible subclassing by introducing a 
couple of delegate methods.
Added a subclass of the RoutingPointStore that supports keeping of store history (not 
completely done yet).
Enabled ResponseTimeEstimator to make use to the HistoryKeepingRoutingPointStore class 
if desired.
(Almost) added support for drawing history lines on the OCM PeerHandler mode graphs 
(if desired and possible).

Index: OpenConnectionManager.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/OpenConnectionManager.java,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -w -r1.158 -r1.159
--- OpenConnectionManager.java  31 Oct 2003 21:43:28 -0000      1.158
+++ OpenConnectionManager.java  3 Nov 2003 16:32:25 -0000       1.159
@@ -75,7 +75,7 @@
     private boolean logDEBUG = true;
     
     private final boolean doHardConnectionLimit = true; // set true to enable special 
debugging for the Curus Bug (simultaneous connect attempts to the same node)!. FIXME: 
set false before release
-    private boolean peerHandlerHTMLMode = false; //If true then we will render the 
OCM HTML page in PeerHandler mode, else in Connectionsmode
+    private boolean peerHandlerHTMLMode = true; //If true then we will render the OCM 
HTML page in PeerHandler mode, else in Connectionsmode
     private int iPeerHandlerSortingMode = 0; //The sorting mode to be used when in 
peerHandlermode
     private NumberFormat nf = NumberFormat.getInstance();
     private ConnectionsHTMLRenderer connectionsHTMLRenderer = new 
ConnectionsHTMLRenderer();
@@ -2219,14 +2219,14 @@
                         resp.sendError(404, "Invalid graph '"+graph+"' specified");
                         return true;
                     }
-                    est.getHTMLReportingTool().drapGraphOnImage(false,bmp,rtColors);
+                    
est.getHTMLReportingTool().drapGraphOnImage(false,bmp,viewLevel>1,rtColors);
                 }else{
                                        TimeEstimator e =ngrt.getEstimator(i, graph);
                                        if(e == null) {
                                                resp.sendError(404, "Invalid graph 
'"+graph+"' specified");
                                                return true;
                                        }
-                                       
e.getHTMLReportingTool().drapGraphOnImage(false,bmp,(Color)rtColors.get(graph),null);
+                                       
e.getHTMLReportingTool().drapGraphOnImage(false,bmp,viewLevel>1,(Color)rtColors.get(graph),null);
                                }
                                
                                BitmapEncoder enc = new DibEncoder();

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

Reply via email to