commit 13e2546: [Minor] Fix table output
Vsevolod Stakhov
vsevolod at rspamd.com
Wed Jun 15 13:49:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-06-15 14:44:47 +0100
URL: https://github.com/rspamd/rspamd/commit/13e254677bf8ee6aab56e5ac100843cfdfd409f9 (HEAD -> master)
[Minor] Fix table output
---
src/client/rspamc.cxx | 4 ++--
1 file 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);
More information about the Commits
mailing list