diff options
author | Ken Matsui <26405363+ken-matsui@users.noreply.github.com> | 2022-03-16 02:34:27 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 02:34:27 +0900 |
commit | ea04cf32c94131d65624b7185b0ce176a35861d1 (patch) | |
tree | 115a5b19f58ecd22f6ebf568e034e67c4ff839b6 | |
parent | f0fd305a5772fe06be9627ddcdcf2950449900b9 (diff) | |
download | ninja-ea04cf32c94131d65624b7185b0ce176a35861d1.tar.gz |
Avoid shadowing `time_millis_`, the field of `StatusPrinter`
-rw-r--r-- | src/status.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status.h b/src/status.h index e211ba3..b2e50ea 100644 --- a/src/status.h +++ b/src/status.h @@ -92,14 +92,14 @@ struct StatusPrinter : Status { double rate() { return rate_; } - void UpdateRate(int update_hint, int64_t time_millis_) { + void UpdateRate(int update_hint, int64_t time_millis) { if (update_hint == last_update_) return; last_update_ = update_hint; if (times_.size() == N) times_.pop(); - times_.push(time_millis_); + times_.push(time_millis); if (times_.back() != times_.front()) rate_ = times_.size() / ((times_.back() - times_.front()) / 1e3); } |