diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-15 14:44:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-06-15 14:44:47 +0100 |
commit | 13e254677bf8ee6aab56e5ac100843cfdfd409f9 (patch) | |
tree | 0aa25ec5e1af0b90e6f3d8d29c11659327be07a8 /src/client | |
parent | 8c115d958c16dcc51cc8c6668e0f9df18e6eed02 (diff) | |
download | rspamd-13e254677bf8ee6aab56e5ac100843cfdfd409f9.tar.gz rspamd-13e254677bf8ee6aab56e5ac100843cfdfd409f9.zip |
[Minor] Fix table output
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index f01ce58fd..eb665c435 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -1120,7 +1120,7 @@ rspamc_counters_output(FILE *out, ucl_object_t *obj) max_len = MIN (sizeof(dash_buf) - dashes - 1, max_len); rspamd_snprintf(fmt_buf, sizeof(fmt_buf), - "| {:3} | {:%d} | {:^7} | {:^13} | {:^7} |\n", max_len); + "| {:4} | {:%d} | {:^7} | {:^13} | {:^7} |\n", max_len); memset(dash_buf, '-', dashes + max_len); dash_buf[dashes + max_len] = '\0'; @@ -1136,7 +1136,7 @@ rspamc_counters_output(FILE *out, ucl_object_t *obj) fmt::print(out, " {} \n", emphasis_argument(dash_buf)); fmt::print(out, fmt_buf, "", "", "", "hits/min", ""); rspamd_snprintf(fmt_buf, sizeof(fmt_buf), - "| {:3} | {:%d} | {:7.1f} | {:^6.3f}({:^5.3f}) | {:7} |\n", max_len); + "| {:4} | {:%d} | {:7.1f} | {:^6.3f}({:^5.3f}) | {:7} |\n", max_len); for (const auto [i, cur] : rspamd::enumerate(counters_vec)) { fmt::print(out, " {} \n", dash_buf); |