aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlhofhansl <larsh@apache.org>2023-01-24 17:40:23 -0800
committerGitHub <noreply@github.com>2023-01-24 17:40:23 -0800
commitcded6a3945206e51c35adbd063f1aec3a47e310f (patch)
tree780fc7e735e6d39fca604434bb00219f117badd6
parentb8aaad4f1ef2e4b22cb7d47de9cb54068ccbbe18 (diff)
downloadminetest-cded6a3945206e51c35adbd063f1aec3a47e310f.tar.xz
Display whole profiler numbers up to 999999 without scientific notation. (#13155)
-rw-r--r--src/profiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiler.cpp b/src/profiler.cpp
index d13afc882..ab05f7382 100644
--- a/src/profiler.cpp
+++ b/src/profiler.cpp
@@ -154,8 +154,8 @@ int Profiler::print(std::ostream &o, u32 page, u32 pagecount)
o << buffer;
}
- porting::mt_snprintf(buffer, sizeof(buffer), "% 5ix % 4.4g",
- getAvgCount(i.first), i.second);
+ porting::mt_snprintf(buffer, sizeof(buffer), "% 5ix % 7g",
+ getAvgCount(i.first), floor(i.second * 1000.0) / 1000.0);
o << buffer << std::endl;
}
return values.size();