[freenet-cvs] r18907 - trunk/freenet/src/freenet/client/async

toad at freenetproject.org toad at freenetproject.org
Wed Apr 2 01:34:57 UTC 2008


Author: toad
Date: 2008-04-02 01:34:57 +0000 (Wed, 02 Apr 2008)
New Revision: 18907

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
indenting

Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java	2008-04-02 01:34:21 UTC (rev 18906)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java	2008-04-02 01:34:57 UTC (rev 18907)
@@ -393,12 +393,12 @@
 				else {
 					sub = getSubSegment(tries);
 					if(tries % ClientRequestScheduler.COOLDOWN_RETRIES == 0) {
-					long now = System.currentTimeMillis();
-					if(dataCooldownTimes[blockNo] > now)
-						Logger.error(this, "Already on the cooldown queue! for "+this+" data block no "+blockNo, new Exception("error"));
-					else
-					dataCooldownTimes[blockNo] = sched.queueCooldown(key, sub);
-					cooldown = true;
+						long now = System.currentTimeMillis();
+						if(dataCooldownTimes[blockNo] > now)
+							Logger.error(this, "Already on the cooldown queue! for "+this+" data block no "+blockNo, new Exception("error"));
+						else
+							dataCooldownTimes[blockNo] = sched.queueCooldown(key, sub);
+						cooldown = true;
 					}
 				}
 			} else {
@@ -409,12 +409,12 @@
 				else {
 					sub = getSubSegment(tries);
 					if(tries % ClientRequestScheduler.COOLDOWN_RETRIES == 0) {
-					long now = System.currentTimeMillis();
-					if(checkCooldownTimes[checkNo] > now)
-						Logger.error(this, "Already on the cooldown queue! for "+this+" check block no "+blockNo, new Exception("error"));
-					else
-					checkCooldownTimes[checkNo] = sched.queueCooldown(key, sub);
-					cooldown = true;
+						long now = System.currentTimeMillis();
+						if(checkCooldownTimes[checkNo] > now)
+							Logger.error(this, "Already on the cooldown queue! for "+this+" check block no "+blockNo, new Exception("error"));
+						else
+							checkCooldownTimes[checkNo] = sched.queueCooldown(key, sub);
+						cooldown = true;
 					}
 				}
 			}




More information about the cvs mailing list