mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix invocation of Table::row()
This commit is contained in:
parent
4c427876d7
commit
447567fe8d
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
|||
}
|
||||
};
|
||||
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue