diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-19 15:36:50 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-07-23 10:24:37 +0200 |
commit | 9c9175b8658cade244272464ede3c21be34df172 (patch) | |
tree | edbc5ccd1e2524e5e882ec21484b4d281eed9f70 /src/other_tools/just_mr/fetch.cpp | |
parent | 69a5e84e420aa16022baeb146931cd6da43f6305 (diff) | |
download | justbuild-9c9175b8658cade244272464ede3c21be34df172.tar.gz |
just-mr: Pass progress and statistics instances to reporter
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r-- | src/other_tools/just_mr/fetch.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index ed585d80..328f0d74 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -35,6 +35,7 @@ #include "src/other_tools/just_mr/exit_codes.hpp" #include "src/other_tools/just_mr/progress_reporting/progress.hpp" #include "src/other_tools/just_mr/progress_reporting/progress_reporter.hpp" +#include "src/other_tools/just_mr/progress_reporting/statistics.hpp" #include "src/other_tools/just_mr/setup_utils.hpp" #include "src/other_tools/ops_maps/archive_fetch_map.hpp" #include "src/other_tools/ops_maps/content_cas_map.hpp" @@ -520,7 +521,8 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config, JustMRProgress::Instance().SetTotal(static_cast<int>(nr_a + nr_gt)); std::atomic<bool> done{false}; std::condition_variable cv{}; - auto reporter = JustMRProgressReporter::Reporter(); + auto reporter = JustMRProgressReporter::Reporter( + &JustMRStatistics::Instance(), &JustMRProgress::Instance()); auto observer = std::thread([reporter, &done, &cv]() { reporter(&done, &cv); }); |