From dde3d667be5ff905a76e1efff2ad40c38359ed78 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 19 Dec 2022 12:11:27 +0100 Subject: [PATCH] Fix progress bar --- src/stats/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/main.cpp b/src/stats/main.cpp index da1b5da5..5535c959 100644 --- a/src/stats/main.cpp +++ b/src/stats/main.cpp @@ -125,7 +125,7 @@ std::vector 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); + auto progress_bar = ProgressBar(numNodes); for (const auto& blobId : knownBlobIds) { forEachReachableBlockInBlob(nodeStore.get(), blobId, { progress_bar.callback(),