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

Modified Files:
        BlockingQueue.java 
Log Message:
6294: Show total amount of data transferred on OCM.

Index: BlockingQueue.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/BlockingQueue.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -r1.21 -r1.22
--- BlockingQueue.java  30 Oct 2003 01:34:01 -0000      1.21
+++ BlockingQueue.java  31 Oct 2003 21:43:29 -0000      1.22
@@ -99,7 +99,7 @@
                    if (andnow - now >= (timeout) && !queue.isEmpty()) {
                        long x = andnow - enqueuedAt;
 
-                       if(queue.size() > 5 && x > (5*timeout)) {
+                       if(queue.size() > 5 && x > 2000) {
                                String err = "Waited more than "+timeout+"ms to 
dequeue, "+queue.size()+" in queue, "+x+" millis since enqueued last item, 
"+dequeuedCounted+" maximum waits so far - could indicate serious JVM bug. Please 
report to [EMAIL PROTECTED] along with JVM and OS/kernel.";
                            Core.logger.log(this, err, Logger.NORMAL);
                            System.err.println(err);

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

Reply via email to