You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2020/05/06 04:10:55 UTC
[incubator-datasketches-cpp] 03/04: fixed debug print
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch kll_exception_safety
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git
commit 87b67205115b3c3a77fb8e8b12461596ce4069ee
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Tue May 5 17:43:29 2020 -0700
fixed debug print
---
kll/include/kll_sketch_impl.hpp | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/kll/include/kll_sketch_impl.hpp b/kll/include/kll_sketch_impl.hpp
index 184412b..fd18622 100644
--- a/kll/include/kll_sketch_impl.hpp
+++ b/kll/include/kll_sketch_impl.hpp
@@ -978,11 +978,7 @@ void kll_sketch<T, C, S, A>::to_stream(std::ostream& os, bool print_levels, bool
}
os << "### End sketch summary" << std::endl;
- // for debugging
- const bool with_levels(false);
- const bool with_data(false);
-
- if (with_levels) {
+ if (print_levels) {
os << "### KLL sketch levels:" << std::endl;
os << " index: nominal capacity, actual size" << std::endl;
for (uint8_t i = 0; i < num_levels_; i++) {
@@ -991,7 +987,7 @@ void kll_sketch<T, C, S, A>::to_stream(std::ostream& os, bool print_levels, bool
os << "### End sketch levels" << std::endl;
}
- if (with_data) {
+ if (print_items) {
os << "### KLL sketch data:" << std::endl;
uint8_t level(0);
while (level < num_levels_) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org