Skip to content
Snippets Groups Projects
Commit a83c8923 authored by Cedric Caffy's avatar Cedric Caffy
Browse files

[lto_rao] Modified the block size used to compute the end of file blockId

parent eb6847ae
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ public:
FilePositionInfos getFilePosition(const cta::RetrieveJob& job) const override;
virtual ~InterpolationFilePositionEstimator();
static const uint64_t c_blockSize = 256000;
static const uint64_t c_blockSize = 256 * 1024;
private:
std::vector<drive::endOfWrapPosition> m_endOfWrapPositions;
cta::catalogue::MediaType m_mediaType;
......
......@@ -348,7 +348,7 @@ namespace unitTests {
costHeuristic.reset(new rao::CTACostHeuristic());
std::unique_ptr<rao::SLTFRAOAlgorithm> sltfRAOAlgorithm = cta::make_unique<rao::SLTFRAOAlgorithm>(filePositionEstimator,costHeuristic);
std::vector<uint64_t> raoOrder = sltfRAOAlgorithm->performRAO(jobs);
std::vector<uint64_t> expectedRAOOrder = {4,6,3,7,2,5,0,1};
std::vector<uint64_t> expectedRAOOrder = {4,6,5,3,2,7,0,1};
ASSERT_EQ(expectedRAOOrder,raoOrder);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment