aboutsummaryrefslogtreecommitdiff
path: root/src/console_reporter.cc
diff options
context:
space:
mode:
authorDominic Hamon <dominichamon@users.noreply.github.com>2017-08-21 16:05:24 -0700
committerGitHub <noreply@github.com>2017-08-21 16:05:24 -0700
commitd70417994a3c845c49c4443e92b26a52b320a759 (patch)
treea19738d9589b83d5a2273702c42af728e368eb0a /src/console_reporter.cc
parentc7192c8a9af0a1cb4d013c589af92d6dceedef60 (diff)
downloadgoogle-benchmark-d70417994a3c845c49c4443e92b26a52b320a759.tar.gz
Allow the definition of 1k to be flexible. (#438)
When generating a human-readable number for user counters, we don't generally expect 1k to be 1024. This is the default due to the more general purpose string utility. Fixes #437
Diffstat (limited to 'src/console_reporter.cc')
-rw-r--r--src/console_reporter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_reporter.cc b/src/console_reporter.cc
index 4bb6f71..1226d23 100644
--- a/src/console_reporter.cc
+++ b/src/console_reporter.cc
@@ -148,7 +148,7 @@ void ConsoleReporter::PrintRunData(const Run& result) {
}
for (auto& c : result.counters) {
- auto const& s = HumanReadableNumber(c.second.value);
+ auto const& s = HumanReadableNumber(c.second.value, 1000);
if (output_options_ & OO_Tabular) {
if (c.second.flags & Counter::kIsRate) {
printer(Out, COLOR_DEFAULT, " %8s/s", s.c_str());