]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix table output
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Jun 2022 13:44:47 +0000 (14:44 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 15 Jun 2022 13:44:47 +0000 (14:44 +0100)
src/client/rspamc.cxx

index f01ce58fdc8661610a66c08706db82a1041bcec7..eb665c435d5a8d43f4ec75d9773d61ea43f281ea 100644 (file)
@@ -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);