summaryrefslogtreecommitdiff
path: root/src/base/stats/text.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/stats/text.cc')
-rw-r--r--src/base/stats/text.cc27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc
index 14300a0f8..3a00620c7 100644
--- a/src/base/stats/text.cc
+++ b/src/base/stats/text.cc
@@ -673,12 +673,18 @@ Text::visit(const DistInfoBase &info)
print.squares = data.squares;
print.samples = data.samples;
- print.min = data.min;
- print.max = data.max;
- print.bucket_size = data.bucket_size;
- print.size = data.size;
print.fancy = data.fancy;
+ if (!data.fancy) {
+ const DistStor::Params *params =
+ safe_cast<const DistStor::Params *>(info.storageParams);
+
+ print.min = params->min;
+ print.max = params->max;
+ print.bucket_size = params->bucket_size;
+ print.size = params->buckets;
+ }
+
print(*stream);
}
@@ -710,11 +716,16 @@ Text::visit(const VectorDistInfoBase &info)
print.squares = info.data[i].squares;
print.samples = info.data[i].samples;
- print.min = info.data[i].min;
- print.max = info.data[i].max;
- print.bucket_size = info.data[i].bucket_size;
- print.size = info.data[i].size;
print.fancy = info.data[i].fancy;
+ if (!print.fancy) {
+ const DistStor::Params *params =
+ safe_cast<const DistStor::Params *>(info.storageParams);
+
+ print.min = params->min;
+ print.max = params->max;
+ print.bucket_size = params->bucket_size;
+ print.size = params->buckets;
+ }
print(*stream);
}