diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2012-09-18 07:10:47 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-09-18 07:10:47 (GMT) |
commit | de6ec48d80879ce9279b3e13c24787e9054d942f (patch) | |
tree | 355807f68d571dd9529d40b2a7d2e11930702acd /src/build.cc | |
parent | d95fcb0cdc816e2585ce9a65676320d71af78c7f (diff) | |
download | Ninja-de6ec48d80879ce9279b3e13c24787e9054d942f.zip Ninja-de6ec48d80879ce9279b3e13c24787e9054d942f.tar.gz Ninja-de6ec48d80879ce9279b3e13c24787e9054d942f.tar.bz2 |
remove some code duplication
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build.cc b/src/build.cc index 5a0c3b3..7310c3d 100644 --- a/src/build.cc +++ b/src/build.cc @@ -18,6 +18,7 @@ #include <stdio.h> #include <stdlib.h> + #ifdef _WIN32 #include <windows.h> #else @@ -180,14 +181,14 @@ string BuildStatus::FormatProgressStatus( // Overall finished edges per second. case 'o': overall_rate_.UpdateRate(finished_edges_); - overall_rate_.snprinfRate(buf, "%.1f"); + snprinfRate(overall_rate_.rate(), buf, "%.1f"); out += buf; break; // Current rate, average over the last '-j' jobs. case 'c': current_rate_.UpdateRate(finished_edges_); - current_rate_.snprinfRate(buf, "%.1f"); + snprinfRate(current_rate_.rate(), buf, "%.1f"); out += buf; break; |