Update of /cvsroot/freenet/freenet/src/freenet/support
In directory sc8-pr-cvs1:/tmp/cvs-serv30030/src/freenet/support
Modified Files:
LimitCounter.java
Log Message:
Display another parameter which might cause node overload on the GeneralInfolet
Index: LimitCounter.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/support/LimitCounter.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- LimitCounter.java 13 Jan 2002 05:24:57 -0000 1.1.1.1
+++ LimitCounter.java 5 Oct 2003 21:22:22 -0000 1.2
@@ -31,6 +31,12 @@
checkTimeout();
return count > maxCount;
}
+
+ // Currently dumps the current status to a string
+ public synchronized String toString() {
+ checkTimeout();
+ return count+"/"+maxCount+" ("+Float.toString(((float)count /
(float)maxCount*100f))+"%)";
+ }
// for the *current interval*.
public synchronized float rate() {
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs