diff --git a/common/lib/hist.cpp b/common/lib/hist.cpp index f7e53dd26..effd3951c 100644 --- a/common/lib/hist.cpp +++ b/common/lib/hist.cpp @@ -22,6 +22,7 @@ #include #include +#include // for DBL_MAX #include #include @@ -33,9 +34,17 @@ using namespace villas::utils; namespace villas { Hist::Hist(int buckets, Hist::cnt_t wu) : - warmup(wu), - data(buckets) -{ } + warmup(wu) +{ + for ( int i = 0; i