diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-06 12:33:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-06 12:33:07 +0200 |
commit | ee923008b83f3d5b02084e16b6291cc99e40058c (patch) | |
tree | 028324ec892c4bc51fbc21318af8cdce57e83071 | |
parent | 306ab0a69a6ea105f5820eb9a7113757f5e47655 (diff) |
Scale target count depending on progress output type (same/new line)
-rw-r--r-- | build2/operation.cxx | 3 |
1 files changed, 1 insertions, 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); |