summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-04-27 23:54:49 (GMT)
committerColin Cross <ccross@android.com>2016-04-28 00:22:08 (GMT)
commit6c2c2eecbfd2e4ddeeacb0129944618a6ce3dc4f (patch)
tree0fc7aa5e61bb4782cb323e666eb5c9ae8caa753e /src/build.cc
parentddaf63fe1b41dfd58c646b05fd16dbe374a81ef3 (diff)
downloadNinja-6c2c2eecbfd2e4ddeeacb0129944618a6ce3dc4f.zip
Ninja-6c2c2eecbfd2e4ddeeacb0129944618a6ce3dc4f.tar.gz
Ninja-6c2c2eecbfd2e4ddeeacb0129944618a6ce3dc4f.tar.bz2
Change default NINJA_STATUS to [%f/%t]
PR #999 changed the status line to be printed when edges finish on dumb teerminals, but the default status message includes the number of started edges, resulting in sequential status lines with identical edge counts. Change the default status to show the number of finished edges, which will keep the count incrementing on every line. This will slightly change the output on smart terminals. Previously a build that was just starting would show a count equal to the number of concurrent jobs, and a build waiting for the final jobs to finish would show a count equal to the total number of edges. Now a starting build will show 0, and build waiting for the final jobs will show a count less than the total number of edges by the number of remaining jobs. Fixes: #1142
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc
index 3a17bdb..c4d5953 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -84,7 +84,7 @@ BuildStatus::BuildStatus(const BuildConfig& config)
progress_status_format_ = getenv("NINJA_STATUS");
if (!progress_status_format_)
- progress_status_format_ = "[%s/%t] ";
+ progress_status_format_ = "[%f/%t] ";
}
void BuildStatus::PlanHasTotalEdges(int total) {