Skip to content

Commit

Permalink
provider-summary: make order of C/Q consistent with queue-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Sep 17, 2024
1 parent 3975afc commit bb3a84f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions crates/kcli/src/provider_summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ use tabout::{Alignment, Column};
///
/// F - the total number of failed/bounced messages
///
/// Q - the total number of ready and scheduled messages in queue
///
/// C - the current number of open connections
///
/// Q - the total number of ready and scheduled messages in queue
///
/// DOMAINS - (when --show-domains is used) a list of domains that correspond to
/// rows that do not have an explicitly configured provider.
#[derive(Debug, Parser)]
Expand Down Expand Up @@ -250,11 +250,11 @@ impl ProviderSummaryCommand {
alignment: Alignment::Right,
},
Column {
name: "Q".to_string(),
name: "C".to_string(),
alignment: Alignment::Right,
},
Column {
name: "C".to_string(),
name: "Q".to_string(),
alignment: Alignment::Right,
},
];
Expand All @@ -279,8 +279,8 @@ impl ProviderSummaryCommand {
m.delivered.to_formatted_string(&Locale::en),
m.transfail.to_formatted_string(&Locale::en),
m.fail.to_formatted_string(&Locale::en),
m.queue_size.to_formatted_string(&Locale::en),
m.connections.to_formatted_string(&Locale::en),
m.queue_size.to_formatted_string(&Locale::en),
];

if let Some(domains) = resolve_domains(&mut site_to_domains, &m.name) {
Expand Down Expand Up @@ -317,11 +317,11 @@ impl ProviderSummaryCommand {
alignment: Alignment::Right,
},
Column {
name: "Q".to_string(),
name: "C".to_string(),
alignment: Alignment::Right,
},
Column {
name: "C".to_string(),
name: "Q".to_string(),
alignment: Alignment::Right,
},
];
Expand All @@ -345,8 +345,8 @@ impl ProviderSummaryCommand {
m.delivered.to_formatted_string(&Locale::en),
m.transfail.to_formatted_string(&Locale::en),
m.fail.to_formatted_string(&Locale::en),
m.queue_size.to_formatted_string(&Locale::en),
m.connections.to_formatted_string(&Locale::en),
m.queue_size.to_formatted_string(&Locale::en),
];

if let Some(domains) = resolve_domains(&mut site_to_domains, &m.name) {
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/kcli/provider-summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ T - the total number of transiently failed messages

F - the total number of failed/bounced messages

Q - the total number of ready and scheduled messages in queue

C - the current number of open connections

Q - the total number of ready and scheduled messages in queue

DOMAINS - (when --show-domains is used) a list of domains that correspond to rows that do not have an explicitly configured provider.


Expand Down

0 comments on commit bb3a84f

Please sign in to comment.