Author: toad
Date: 2008-04-10 13:23:18 +0000 (Thu, 10 Apr 2008)
New Revision: 19129
Modified:
trunk/freenet/src/freenet/client/FECCodec.java
Log:
FECCodec: be consistent with InsertContext.
Modified: trunk/freenet/src/freenet/client/FECCodec.java
===================================================================
--- trunk/freenet/src/freenet/client/FECCodec.java 2008-04-10 01:41:28 UTC
(rev 19128)
+++ trunk/freenet/src/freenet/client/FECCodec.java 2008-04-10 13:23:18 UTC
(rev 19129)
@@ -75,7 +75,8 @@
* all FEC.
*/
int checkBlocks = dataBlocks;
- if(dataBlocks == 128) checkBlocks--; // Stay within the
8-bit code range, speeds things up 4x
+ if(dataBlocks >=
HighLevelSimpleClientImpl.MAX_SPLITFILE_CHECK_BLOCKS_PER_SEGMENT)
+ checkBlocks =
HighLevelSimpleClientImpl.MAX_SPLITFILE_CHECK_BLOCKS_PER_SEGMENT;
return StandardOnionFECCodec.getInstance(dataBlocks,
checkBlocks, executor);
}
else