Fix progress bar

This commit is contained in:
Sebastian Messmer 2022-12-19 12:03:42 +01:00
parent 9cd62c279d
commit cc365e9b86

View File

@ -125,9 +125,10 @@ std::vector<BlockId> getKnownBlockIds(const path& basedir, const CryConfigLoader
const uint32_t numNodes = nodeStore->numNodes();
knownBlockIds.reserve(numNodes);
cout << "Listing all blocks used by these file system entities..." << endl;
auto progress_bar = ProgressBar(numBlocks);
for (const auto& blobId : knownBlobIds) {
forEachReachableBlockInBlob(nodeStore.get(), blobId, {
ProgressBar(numNodes).callback(),
progress_bar.callback(),
knownBlockIds.callback()
});
}