Update of /cvsroot/freenet/freenet/src/freenet/node/states/data
In directory sc8-pr-cvs1:/tmp/cvs-serv17682/src/freenet/node/states/data
Modified Files:
ReceiveData.java SendData.java
Log Message:
get rid of some yellowies
Index: ReceiveData.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/data/ReceiveData.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -w -r1.24 -r1.25
--- ReceiveData.java 31 Oct 2003 19:21:21 -0000 1.24
+++ ReceiveData.java 31 Oct 2003 19:35:40 -0000 1.25
@@ -103,7 +103,7 @@
byte[] buffer = new byte[Core.blockSize];
long moved = 0;
- boolean logDEBUG = n.logger.shouldLog(Logger.DEBUG,this);
+ boolean logDEBUG = Core.logger.shouldLog(Logger.DEBUG,this);
try {
while (moved < length) {
@@ -170,7 +170,7 @@
result = Presentation.CB_CACHE_FAILED; // umm, kinda
} finally {
- n.diagnostics.occurrenceBinomial("receivedData", 1,
+ Core.diagnostics.occurrenceBinomial("receivedData", 1,
result == Presentation.CB_OK ?
1 : 0);
Index: SendData.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/states/data/SendData.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -w -r1.32 -r1.33
--- SendData.java 31 Oct 2003 19:21:21 -0000 1.32
+++ SendData.java 31 Oct 2003 19:35:40 -0000 1.33
@@ -67,7 +67,7 @@
this.partSize = partSize;
this.n = n;
myTWCM = new TrailerWriteCallbackMessage(id, n, this);
- logDEBUG = n.logger.shouldLog(Logger.DEBUG,this);
+ logDEBUG = Core.logger.shouldLog(Logger.DEBUG,this);
if(logDEBUG)
Core.logger.log(this, "Creating SendData("+this+")", Logger.DEBUG);
}
@@ -165,7 +165,7 @@
m = 0;
}
- logDEBUG = n.logger.shouldLog(Logger.DEBUG, this);
+ logDEBUG = Core.logger.shouldLog(Logger.DEBUG, this);
if (isTWCM) {
waitingForWriteNotify = false;
@@ -271,7 +271,7 @@
result = Presentation.CB_CACHE_FAILED; // well, sorta
}
- n.diagnostics.occurrenceBinomial("sentData", 1, 0);
+ Core.diagnostics.occurrenceBinomial("sentData", 1, 0);
try {
in.close();
closedIn = true;
@@ -385,7 +385,7 @@
}
if (moved == length)
result = Presentation.CB_OK;
- n.diagnostics.occurrenceBinomial("sentData", 1, result ==
Presentation.CB_OK ? 1 : 0);
+ Core.diagnostics.occurrenceBinomial("sentData", 1, result ==
Presentation.CB_OK ? 1 : 0);
if (!silent)
n.schedule(new DataSent(this));
return null;
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs