summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorPeter Bell <peterbell10@live.co.uk>2022-03-08 04:52:53 (GMT)
committerPeter Bell <peterbell10@live.co.uk>2022-03-08 04:52:53 (GMT)
commitf2333b706a080389583e5e355fd339a37089fe2c (patch)
treebbb4c8c874428812e67b7d80c6234cbdac87b4b1 /src/build.cc
parenta643af2207f8f090d2a7aefeec954fcd2725c39c (diff)
downloadNinja-f2333b706a080389583e5e355fd339a37089fe2c.zip
Ninja-f2333b706a080389583e5e355fd339a37089fe2c.tar.gz
Ninja-f2333b706a080389583e5e355fd339a37089fe2c.tar.bz2
Rename critical_time to critical_time_ms
Diffstat (limited to 'src/build.cc')
-rw-r--r--src/build.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/build.cc b/src/build.cc
index 1f1e153..04be16c 100644
--- a/src/build.cc
+++ b/src/build.cc
@@ -563,9 +563,9 @@ void Plan::ComputeCriticalTime(BuildLog* build_log) {
// Add a bias to ensure that targets that appear first in |targets_| have a larger critical time than
// those that follow them. E.g. for 3 targets: [2*total_time, total_time, 0].
int64_t priority_weight = (targets_.size() - i - 1) * total_time;
- in->set_critical_time(
+ in->set_critical_time_ms(
priority_weight +
- std::max<int64_t>(in->run_time_ms(), in->critical_time()));
+ std::max<int64_t>(in->run_time_ms(), in->critical_time_ms()));
if (!seen_edge(in)) {
work_queue.push(in);
}
@@ -585,9 +585,9 @@ void Plan::ComputeCriticalTime(BuildLog* build_log) {
continue;
}
// Only process edge if this node offers a higher critical time
- const int64_t proposed_time = e->critical_time() + in->run_time_ms();
- if (proposed_time > in->critical_time()) {
- in->set_critical_time(proposed_time);
+ const int64_t proposed_time = e->critical_time_ms() + in->run_time_ms();
+ if (proposed_time > in->critical_time_ms()) {
+ in->set_critical_time_ms(proposed_time);
if (!seen_edge(in)) {
work_queue.push(in);
}