diff --git a/KodoTest/KodoTest.sdf b/KodoTest/KodoTest.sdf index 5561900dc5016e270484a7212be9e27cd34db895..66e62f9ac11654421fa89341bb64e62559942c7a 100644 Binary files a/KodoTest/KodoTest.sdf and b/KodoTest/KodoTest.sdf differ diff --git a/KodoTest/KodoTest.v12.suo b/KodoTest/KodoTest.v12.suo index 8b4ea13630ed9a2f426446ce7ae14cb99b840f92..45914a5dfcfb0b7c3fa0f1a9df3e0181baa3c6a8 100644 Binary files a/KodoTest/KodoTest.v12.suo and b/KodoTest/KodoTest.v12.suo differ diff --git a/KodoTest/KodoTest/Source.cpp b/KodoTest/KodoTest/Source.cpp index e30f77fca3753b0aa87420de9562013f86ddf4d1..afb42436219f9f6bbf715c8c3e868f6b07789b22 100644 --- a/KodoTest/KodoTest/Source.cpp +++ b/KodoTest/KodoTest/Source.cpp @@ -58,7 +58,7 @@ int main() uint32_t file_size = filesize(encode_filename); uint32_t max_symbols = 10; - uint32_t max_symbol_size = file_size / 10 + 1; + uint32_t max_symbol_size = file_size / 10; using file_encoder = kodo::object::file_encoder< kodo::shallow_full_rlnc_encoder<fifi::binary >> ; @@ -77,7 +77,7 @@ int main() std::vector<uint8_t> payload(e->payload_size()); - for (uint32_t j = 0; j < max_symbols; j++) + for (uint32_t j = 0; j < e->symbols() * 3; j++) { e->encode(payload.data()); @@ -145,6 +145,8 @@ int main() } fragNum++; } + + std::cout << fragNum << std::endl; } std::cout << "Is this shit working: " << (isFilesEqual(encode_filename, decode_filename) ? "true" : "false");