diff --git a/common/include/villas/table.hpp b/common/include/villas/table.hpp index bf594ff8b..90c9a5d19 100644 --- a/common/include/villas/table.hpp +++ b/common/include/villas/table.hpp @@ -43,7 +43,7 @@ public: }; protected: - int _width; /**< The real width of this column. Calculated by table_header() */ + int _width; /**< The real width of this column. Calculated by Table::resize() */ int width; /**< Width of the column. */ @@ -95,4 +95,4 @@ public: } }; -/** @} */ \ No newline at end of file +/** @} */ diff --git a/common/lib/hist.cpp b/common/lib/hist.cpp index 058126576..9f93e93d7 100644 --- a/common/lib/hist.cpp +++ b/common/lib/hist.cpp @@ -172,7 +172,7 @@ void hist_plot(const struct hist *h) std::vector cols = { { -9, TableColumn::align::RIGHT, "Value", "%+9.3g" }, { -6, TableColumn::align::RIGHT, "Count", "%6ju" }, - { 0, TableColumn::align::LEFT, "Plot", "%s", "occurences" } + { 0, TableColumn::align::LEFT, "Plot", "%s", "occurences" } }; Table table = Table(cols); @@ -189,7 +189,7 @@ void hist_plot(const struct hist *h) for (int i = 0; i < bar; i++) buf = strcatf(&buf, "\u2588"); - table.row(value, cnt, buf); + table.row(3, value, cnt, buf); free(buf); }