diff --git a/common/include/villas/hist.hpp b/common/include/villas/hist.hpp index 11adef22d..33fa4549c 100644 --- a/common/include/villas/hist.hpp +++ b/common/include/villas/hist.hpp @@ -61,7 +61,7 @@ public: double getStddev() const; /** Print all statistical properties of distribution including a graphilcal plot of the histogram. */ - void print(const int details) const; + void print(bool details) const; /** Print ASCII style plot of histogram */ void plot() const; diff --git a/common/lib/hist.cpp b/common/lib/hist.cpp index 888410ab4..fc710e7ab 100644 --- a/common/lib/hist.cpp +++ b/common/lib/hist.cpp @@ -129,7 +129,7 @@ double Hist::getStddev() const return sqrt(getVar()); } -void Hist::print(int details) const +void Hist::print(bool details) const { if (total > 0) { Hist::cnt_t missed = total - higher - lower; @@ -142,7 +142,7 @@ void Hist::print(int details) const info("Variance: %g", getVar()); info("Stddev: %g", getStddev()); - if (details > 0 && total - higher - lower > 0) { + if (details && total - higher - lower > 0) { char *buf =dump(); info("Matlab: %s", buf); free(buf);