Author: toad
Date: 2005-11-17 21:18:43 +0000 (Thu, 17 Nov 2005)
New Revision: 7548
Modified:
trunk/freenet/src/freenet/client/StandardOnionFECCodec.java
Log:
comments etc
Modified: trunk/freenet/src/freenet/client/StandardOnionFECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/StandardOnionFECCodec.java 2005-11-17
20:59:49 UTC (rev 7547)
+++ trunk/freenet/src/freenet/client/StandardOnionFECCodec.java 2005-11-17
21:18:43 UTC (rev 7548)
@@ -389,7 +389,7 @@
}
if (numberToEncode > 0) {
- // Do the (striped) decode
+ // Do the (striped) encode
for (int offset = 0; offset < blockLength;
offset += STRIPE_SIZE) {
// Read the data in first
for (int i = 0; i < k; i++) {
@@ -416,8 +416,7 @@
Logger.minor(this, "Stripe encode took "
+ (endTime - startTime)
+ " ms for k=" + k + ", n="
+ n + ", stripeSize=" +
STRIPE_SIZE);
- // FIXME this is a total horrible hack,
but I was desperate
- // Without this, threads get randomly
stuck for many seconds at a time
+ // Try to limit CPU usage!!
try {
Thread.sleep(endTime -
startTime);
} catch (InterruptedException e) {