summaryrefslogtreecommitdiff
path: root/src/base/stats/mysql.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/stats/mysql.cc')
-rw-r--r--src/base/stats/mysql.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/stats/mysql.cc b/src/base/stats/mysql.cc
index 605075009..d14904fb0 100644
--- a/src/base/stats/mysql.cc
+++ b/src/base/stats/mysql.cc
@@ -585,7 +585,7 @@ MySql::configure(const DistInfo &info)
const DistParams *params =
safe_cast<const DistParams *>(info.storageParams);
- if (!params->fancy) {
+ if (params->type == Dist) {
stat.size = params->buckets;
stat.min = params->min;
stat.max = params->max;
@@ -602,7 +602,7 @@ MySql::configure(const VectorDistInfo &info)
const DistParams *params =
safe_cast<const DistParams *>(info.storageParams);
- if (!params->fancy) {
+ if (params->type == Dist) {
stat.size = params->buckets;
stat.min = params->min;
stat.max = params->max;
@@ -789,7 +789,7 @@ MySql::output(const DistData &data, const DistParams *params)
newdata.data = data.samples;
newdata.insert();
- if (data.samples && !params->fancy) {
+ if (data.samples && params->type == Dist) {
newdata.x = db_min_val;
newdata.data = data.min_val;
newdata.insert();