From ee923008b83f3d5b02084e16b6291cc99e40058c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 6 Aug 2017 12:33:07 +0200 Subject: Scale target count depending on progress output type (same/new line) --- build2/operation.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build2/operation.cxx b/build2/operation.cxx index ca8382c..09e7b8c 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -108,8 +108,7 @@ namespace build2 if (ops.progress () || (stderr_term && verb >= 1 && verb <= 2 && !ops.no_progress ())) { - size_t init (target_count.load (memory_order_relaxed)); - size_t incr (init > 100 ? 10 : 1); + size_t incr (stderr_term ? 1 : 10); // Scale depending on output type. what = " targets to " + diag_do (a); -- cgit v1.1