Commit 44eb1b40 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

fix invocation of Table::row()

parent c1c43593
......@@ -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
/** @} */
......@@ -172,7 +172,7 @@ void hist_plot(const struct hist *h)
std::vector<TableColumn> 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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment