Skip to content

Commit bcf4ad1

Browse files
authored
Widen the width of the stats column to accommodate max_uint32 ints (#1155)
1 parent f313924 commit bcf4ad1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

production/rules/event_manager/inc/rule_stats.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ class rule_stats_t
6161
// Row 3 is an individual rule stats row (c_individual_stats_format).
6262
static constexpr uint8_t c_max_rule_id_len = 30;
6363
static constexpr uint8_t c_thread_load_len = 17; // length of [thread load: ...] excluding the percentage
64-
static constexpr uint8_t c_max_row_len = 120;
64+
static constexpr uint8_t c_max_row_len = 150;
6565
static constexpr uint8_t c_count_int_columns = 6;
6666
static constexpr uint8_t c_count_float_columns = 4;
67-
static constexpr uint8_t c_int_width = 6;
67+
static constexpr uint8_t c_int_width = 10;
6868
static constexpr uint8_t c_float_width = 13; // includes len(' ms')
6969

7070
static const char c_truncate_char = '~';
7171
static constexpr uint8_t c_thread_load_padding = c_max_rule_id_len - c_thread_load_len;
72-
static constexpr char c_header_format[] = "{:->{}}{: >6}{: >6}{: >6}{: >6}{: >6}{: >6}{: >13}{: >13}{: >13}{: >13}";
73-
static constexpr char c_individual_stats_format[] = "{: <{}}{:6}{:6}{:6}{:6}{:6}{:6}{:10.2f} ms{:10.2f} ms{:10.2f} ms{:10.2f} ms";
74-
static constexpr char c_cumulative_stats_format[] = "[{}{:{}.2f} %]{:6}{:6}{:6}{:6}{:6}{:6}{:10.2f} ms{:10.2f} ms{:10.2f} ms{:10.2f} ms";
72+
static constexpr char c_header_format[] = "{:->{}}{: >10}{: >10}{: >10}{: >10}{: >10}{: >10}{: >13}{: >13}{: >13}{: >13}";
73+
static constexpr char c_individual_stats_format[] = "{: <{}}{:10}{:10}{:10}{:10}{:10}{:10}{:10.2f} ms{:10.2f} ms{:10.2f} ms{:10.2f} ms";
74+
static constexpr char c_cumulative_stats_format[] = "[{}{:{}.2f} %]{:10}{:10}{:10}{:10}{:10}{:10}{:10.2f} ms{:10.2f} ms{:10.2f} ms{:10.2f} ms";
7575

7676
static constexpr char c_thread_load[] = "thread load: ";
7777

0 commit comments

Comments
 (0)