summaryrefslogtreecommitdiff
path: root/src/base/stats/info.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/stats/info.hh')
-rw-r--r--src/base/stats/info.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh
index e56445f94..85a0df447 100644
--- a/src/base/stats/info.hh
+++ b/src/base/stats/info.hh
@@ -180,9 +180,11 @@ struct DistData
Counter samples;
};
+enum DistType { Deviation, Dist };
+
struct DistParams : public StorageParams
{
- const bool fancy;
+ const DistType type;
/** The minimum value to track. */
Counter min;
@@ -193,7 +195,7 @@ struct DistParams : public StorageParams
/** The number of buckets. Equal to (max-min)/bucket_size. */
size_type buckets;
- explicit DistParams(bool f) : fancy(f) {}
+ explicit DistParams(DistType t) : type(t) {}
};
class DistInfo : public Info