Show interface names (#340)

* added interface names

* some fixes

* Set interface name in UI only once

* Code style

* Add changelog entry

---------

Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
This commit is contained in:
ilyes-ced
2023-12-08 08:33:10 +00:00
committed by GitHub
parent 0a89c5aba5
commit 5648be6f11
39 changed files with 84 additions and 79 deletions

View File

@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
* Show interface names #340 - @ilyes-ced
* CI: ensure a changelog entry exists for each PR #331 - @cyqsimon
## [0.21.1] - 2023-10-16

View File

@@ -73,6 +73,7 @@ impl<'a> HeaderDetails<'a> {
}
fn bandwidth_string(&self) -> String {
let intrf = self.state.interface_name.as_deref().unwrap_or("all");
let t = if self.state.cumulative_mode {
"Data"
} else {
@@ -88,7 +89,7 @@ impl<'a> HeaderDetails<'a> {
unit_family,
};
let paused = if self.paused { " [PAUSED]" } else { "" };
format!(" Total {t} (Up / Down): {up} / {down}{paused}")
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) {

View File

@@ -4,7 +4,7 @@ use chrono::prelude::*;
use ratatui::{backend::Backend, Terminal};
use crate::{
cli::RenderOpts,
cli::{Opt, RenderOpts},
display::{
components::{HeaderDetails, HelpText, Layout, Table},
UIState,
@@ -26,21 +26,22 @@ impl<B> Ui<B>
where
B: Backend,
{
pub fn new(terminal_backend: B, opts: RenderOpts) -> Self {
pub fn new(terminal_backend: B, opts: &Opt) -> Self {
let mut terminal = Terminal::new(terminal_backend).unwrap();
terminal.clear().unwrap();
terminal.hide_cursor().unwrap();
let state = {
let mut state = UIState::default();
state.unit_family = opts.unit_family;
state.cumulative_mode = opts.total_utilization;
state.interface_name = opts.interface.clone();
state.unit_family = opts.render_opts.unit_family;
state.cumulative_mode = opts.render_opts.total_utilization;
state
};
Ui {
terminal,
state,
ip_to_host: Default::default(),
opts,
opts: opts.render_opts,
}
}
pub fn output_text(&mut self, write_to_stdout: &mut (dyn FnMut(String) + Send)) {

View File

@@ -79,6 +79,8 @@ pub struct UtilizationData {
#[derive(Default)]
pub struct UIState {
/// The interface name in single-interface mode. `None` means all interfaces.
pub interface_name: Option<String>,
pub processes: Vec<(String, NetworkData)>,
pub remote_addresses: Vec<(IpAddr, NetworkData)>,
pub connections: Vec<(Connection, ConnectionData)>,

View File

@@ -121,7 +121,7 @@ where
let raw_mode = opts.raw;
let network_utilization = Arc::new(Mutex::new(Utilization::new()));
let ui = Arc::new(Mutex::new(Ui::new(terminal_backend, opts.render_opts)));
let ui = Arc::new(Mutex::new(Ui::new(terminal_backend, &opts)));
let display_handler = thread::Builder::new()
.name("display_handler".to_string())

View File

@@ -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) │
│ │

View File

@@ -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) │
│ │

View File

@@ -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) │
│ │

View File

@@ -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) │
│ │

View File

@@ -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) │
│ ││ │

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden).
--- SECTION SEPARATOR ---
98. 0B
98. 0B
5 1 0.00B / 28.00B

View File

@@ -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 <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden).
--- SECTION SEPARATOR ---
98. 0B
98. 0B
5 1 0.00B / 28.00B

View File

@@ -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 <SPACE> to pause.
--- SECTION SEPARATOR ---
98. 0B
5 0.00B / 28.00B

View File

@@ -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 <SPACE> to pause. Use <TAB> to rearrange tables.
--- SECTION SEPARATOR ---
98. 0B
98. 0B
5 1 0.00B / 28.00B

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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]

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> 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

View File

@@ -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 <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden).
--- SECTION SEPARATOR ---
24. 0B / 25.00B
24. 0B / 25.00B
<interface_name>:443 => 1.1.1.1:12345 (tcp) 1 24.00B / 25.00B

View File

@@ -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 <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden).
--- SECTION SEPARATOR ---
24. 0B / 25.00B
24. 0B / 25.00B
1 1 24.00B / 25.00B

View File

@@ -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) │
│ │

View File

@@ -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) │
│ ││ │