diff --git a/src/display/components/header_details.rs b/src/display/components/header_details.rs index 7dc0ee970..2e1467668 100644 --- a/src/display/components/header_details.rs +++ b/src/display/components/header_details.rs @@ -88,8 +88,8 @@ impl<'a> HeaderDetails<'a> { unit_family, }; let paused = if self.paused { " [PAUSED]" } else { "" }; - let intrf = &self.state.interface_name; - format!("Interface: <{intrf}> | Total {t} (Up / Down): {up} / {down}{paused}") + let intrf = self.state.interface_name.clone().unwrap_or("All".to_string()); + format!("IF: {intrf} | Total {t} (Up / Down): {up} / {down}{paused}") } fn render_elapsed_time(&self, frame: &mut Frame, rect: Rect, elapsed_time: &str, color: Color) { diff --git a/src/display/ui.rs b/src/display/ui.rs index e5388f319..4bb531e82 100644 --- a/src/display/ui.rs +++ b/src/display/ui.rs @@ -182,7 +182,7 @@ where pub fn end(&mut self) { self.terminal.show_cursor().unwrap(); } - pub fn update_interface_name(&mut self, interface_name: String) { + pub fn update_interface_name(&mut self, interface_name: Option) { self.state.interface_name = interface_name; } } diff --git a/src/display/ui_state.rs b/src/display/ui_state.rs index 945232723..3abf26ad6 100644 --- a/src/display/ui_state.rs +++ b/src/display/ui_state.rs @@ -92,7 +92,7 @@ pub struct UIState { pub connections_map: HashMap, /// Used for reducing logging noise. known_orphan_sockets: VecDeque, - pub interface_name: String, + pub interface_name: Option, } impl UIState { diff --git a/src/main.rs b/src/main.rs index 5be9d7fa5..7f71c81da 100644 --- a/src/main.rs +++ b/src/main.rs @@ -155,11 +155,7 @@ where let mut ui = ui.lock().unwrap(); let paused = paused.load(Ordering::SeqCst); let ui_offset = ui_offset.load(Ordering::SeqCst); - let interface = match opts.interface { - Some(ref interface_name) => interface_name.to_string(), - None => "All Interfaces".to_string(), - }; - ui.update_interface_name(interface); + ui.update_interface_name(opts.interface.clone()); if !paused { ui.update_state(sockets_to_procs, utilization, ip_to_host); } diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap index cbb949651..60c072861 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_addresses.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by remote address───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Remote Address Connections Rate (Up / Down) │ │ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap index 61bdb23fb..80532cfe0 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_connections.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Connection Process Rate (Up / Down) │ │ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap index 6ea91e9bb..1910f6acb 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_only_processes.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap index 905f34acc..7fea4345a 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_processes_with_dns_queries.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap index f1056c8fe..f8c72d422 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__basic_startup.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap index de1acbefd..68295bf09 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__bi_directional_traffic.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 24. 0B / 25.00B + 24. 0B / 25.00B 1 1 24.00B / 25.00B 1.1.1.1 1 24.00B / 25.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-full-width-under-30-height-draw_events.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-full-width-under-30-height-draw_events.snap index c00c36777..809920d5a 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-full-width-under-30-height-draw_events.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-full-width-under-30-height-draw_events.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -33,7 +33,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 98. 0B + 98. 0B 5 1 0.00B / 28.00B 3.3.3.3 1 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-full-height-draw_events.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-full-height-draw_events.snap index 4a9c96787..9a49d509f 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-full-height-draw_events.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-full-height-draw_events.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 98. 0B + 98. 0B 5 1 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-under-30-height-draw_events.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-under-30-height-draw_events.snap index a13bf3a8b..bbd632605 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-under-30-height-draw_events.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-120-width-under-30-height-draw_events.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ @@ -33,7 +33,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 98. 0B + 98. 0B 5 1 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-50-width-under-50-height-draw_events.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-50-width-under-50-height-draw_events.snap index ecb59a431..39c158ea9 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-50-width-under-50-height-draw_events.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-50-width-under-50-height-draw_events.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B ┌Utilization by process name─────────────────────┐ │Process Rate (Up / Down) │ │ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. --- SECTION SEPARATOR --- - 98. 0B + 5 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-70-width-under-30-height-draw_events.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-70-width-under-30-height-draw_events.snap index 223137515..7f384709a 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-70-width-under-30-height-draw_events.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__layout-under-70-width-under-30-height-draw_events.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ @@ -33,7 +33,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. --- SECTION SEPARATOR --- - 98. 0B + 98. 0B 5 1 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap index 378c61aec..93a42d324 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_connections_from_remote_address.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 47. 0B + 47. 0B 1 2 0.00B / 47.00B 1.1.1.1 2 0.00B / 47.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap index 633c485cb..7a833b103 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_different_connections.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 41. 0B + 41. 0B 1 1 0.00B / 22.00B 2.2.2.2 2 0.00B / 41.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap index 4ac8d5afa..0b1b04a4b 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_packets_of_traffic_from_single_connection.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B + 45. 0B 1 1 0.00B / 45.00B 1.1.1.1 1 0.00B / 45.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap index 293849ce4..60380206a 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 98. 0B + 98. 0B 5 1 0.00B / 28.00B 3.3.3.3 1 0.00B / 28.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap index cabe163a9..4896df3bd 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__no_resolve_mode.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B / 49.00B + 45. 0B / 49.00B 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 53 60 + 53 60 31 2 31 2 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap index be63db548..2554d3866 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_packet_of_traffic.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 21. 0B / 0. 0B + 21. 0B / 0. 0B 1 1 21.00B / 0.00B 1.1.1.1 1 21.00B / 0.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap index 8899ea491..1cb3f7650 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__one_process_with_multiple_connections.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 46. 0B + 46. 0B 1 2 0.00B / 46.00B 1.1.1.1 2 0.00B / 46.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap index 4863abcc0..d03a751dc 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__pause_by_space.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - Total Rate (Up / Down): 0.00B / 0.00B [PAUSED] +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B [PAUSED] diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab.snap index ee7169332..91ca72dea 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__rearranged_by_tab.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 22. 0B + 22. 0B 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B @@ -158,7 +158,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 14 + 14 14 14 @@ -210,7 +210,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 1 + 1 1 1 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap index 22bc77b2c..086588f95 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 41. 0B + 41. 0B 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 65 + 65 35 35 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap index cabe163a9..4896df3bd 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B / 49.00B + 45. 0B / 49.00B 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 53 60 + 53 60 31 2 31 2 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap index 11971e51b..302581394 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_bi_directional_total.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Data (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Data (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Data (Up / Down) ││Remote Address Connections Data (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B / 49.00B + 45. 0B / 49.00B 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 98 109. 0B + 98 109. 0B 59 62 59 62 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap index b9deb8ab4..d427f0fb9 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_multiple_processes_total.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Data (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Data (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Data (Up / Down) ││Remote Address Connections Data (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 41. 0B + 41. 0B 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 106. 0B + 106. 0B 57 57 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap index 71ee9168e..6aad651b4 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 22. 0B + 22. 0B 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 31 + 31 31 31 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap index 587055b46..e36f3eea3 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__sustained_traffic_from_one_process_total.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Data (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Data (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Data (Up / Down) ││Remote Address Connections Data (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 22. 0B + 22. 0B 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 53 + 53 53 53 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap index 7500eae08..87aeb6187 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_host_names.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B / 49.00B + 45. 0B / 49.00B 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 53 60 + 53 60 31 2 one one.one.one 31 2 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap index 2f91ff966..32d3ec2b6 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__traffic_with_winch_event.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 21. 0B / 0. 0B + 21. 0B / 0. 0B 1 1 21.00B / 0.00B 1.1.1.1 1 21.00B / 0.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap index 5c0b1a5cf..ad558af20 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name──────────────────────────────────────────────────────────────────┐┌Utilization by remote address────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 45. 0B / 49.00B + 45. 0B / 49.00B 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B @@ -106,7 +106,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- SECTION SEPARATOR --- - 53 60 + 53 60 31 2 i am.not.too.long 31 2 diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap index de5ac07c2..42311f8df 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_addresses.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by remote address───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Remote Address Connections Rate (Up / Down) │ │ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 24. 0B / 25.00B + 24. 0B / 25.00B 1.1.1.1 1 24.00B / 25.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap index 087fddba1..9a553b555 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Connection Process Rate (Up / Down) │ │ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 24. 0B / 25.00B + 24. 0B / 25.00B :443 => 1.1.1.1:12345 (tcp) 1 24.00B / 25.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap index 1644aa21f..9da4d6ee9 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_processes.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by process name─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │Process Connections Rate (Up / Down) │ │ │ @@ -54,7 +54,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR Press to pause. Use to rearrange tables. (DNS queries hidden). --- SECTION SEPARATOR --- - 24. 0B / 25.00B + 24. 0B / 25.00B 1 1 24.00B / 25.00B diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap index 2711c2d03..af3de205b 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_horizontally.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by remote address─────────────────────────────┐ │Remote Address Rate (Up / Down) │ │ │ diff --git a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap index 2ae9de348..a6a498f68 100644 --- a/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap +++ b/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_windows_split_vertically.snap @@ -2,7 +2,7 @@ source: src/tests/cases/ui.rs expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR) --- - Total Rate (Up / Down): 0.00B / 0.00B +IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B ┌Utilization by remote address────────────────────────────────────────────────────────────────┐┌Utilization by connection────────────────────────────────────────────────────────────────────┐ │Remote Address Connections Rate (Up / Down) ││Connection Process Rate (Up / Down) │ │ ││ │