From 5e417ea840d51c20295f8772e8b4655065071b7d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 09:51:04 +0200 Subject: Tweak progress display --- build2/operation.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/operation.cxx') diff --git a/build2/operation.cxx b/build2/operation.cxx index a5424bc..9d36838 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -111,14 +111,14 @@ namespace build2 mg = sched.monitor ( target_count, - 20, + 10, [&what] (size_t c) -> size_t { diag_progress_lock pl; diag_progress = ' '; diag_progress += to_string (c); diag_progress += what; - return c + 20; + return c + 10; }); } @@ -250,7 +250,7 @@ namespace build2 string what; if (ops.progress ()) { - what = "% " + diag_did (a); + what = "% of targets " + diag_did (a); size_t init (target_count.load (memory_order_relaxed)); size_t incr (init / 100); // 1%. -- cgit v1.1