diff options
author | Joao Paulo Magalhaes <dev@jpmag.me> | 2017-04-29 19:34:37 +0100 |
---|---|---|
committer | Joao Paulo Magalhaes <dev@jpmag.me> | 2017-04-29 19:34:37 +0100 |
commit | 921a51abcfd22b4e554e25bb69387b4e3213c6ab (patch) | |
tree | 558887cf3e9eb23c7f82e381b13ec0e1d97cc83b /src/console_reporter.cc | |
parent | 5ed1b1dea7532c0bd08850bea3cf6591d4b7f167 (diff) | |
download | google-benchmark-921a51abcfd22b4e554e25bb69387b4e3213c6ab.tar.gz |
Console reporting of user counters: print rates like non-rates.
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r-- | src/console_reporter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_reporter.cc b/src/console_reporter.cc index d4dbb8e..bc60c65 100644 --- a/src/console_reporter.cc +++ b/src/console_reporter.cc @@ -134,8 +134,8 @@ void ConsoleReporter::PrintRunData(const Run& result) { for (auto& c : result.counters) { auto const& s = HumanReadableNumber(c.second.value); if (c.second.flags & Counter::Flags::kIsRate) { - std::string counter_rate = StrCat(" ", HumanReadableNumber(c.second.value), " ", c.first.c_str(), "/s"); - printer(Out, COLOR_DEFAULT, " %*s", 13, counter_rate.c_str()); + std::string counter_rate = StrCat(HumanReadableNumber(c.second.value), "/s"); + printer(Out, COLOR_DEFAULT, " %s=%s", c.first.c_str(), counter_rate.c_str()); } else { printer(Out, COLOR_DEFAULT, " %s=%s", c.first.c_str(), s.c_str()); |