diff options
author | Krithic Kumar <30691152+notjedi@users.noreply.github.com> | 2024-03-18 10:59:47 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 13:29:47 +0800 |
commit | 1997bce393313d7ba685ee127d743e3a310530ac (patch) | |
tree | bf5190061ccba2e3ff8f703c39448b585f175ee0 /src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap | |
parent | f892d2f758ea342ddbdb5d64eaed6e63fa8d1ddd (diff) |
feat: add `PID` column to `Process` table (#379)
* feat: add `PID` column to `Process` table
* fix(tests): populate fake data with the correct `ProcessInfo` type
* test: update snapshots
* refactor: use more idiomatic rust
* refactor: rename function from `get_proc_name` to `get_proc_info`
* refactor: only display PID when width available is highest
ref: https://github.com/imsnif/bandwhich/pull/165#issuecomment-620852892
* tests: update snapshots
* chore: update CHANGELOG
* fix: clippy warnings
* Revert "fix: clippy warnings"
This reverts commit e5f06cba1943d60b43a19957c42e3178c6916f69.
We will do this separately for the sake of keeping a clean history
* refactor: use `u32` for PID
* refactor: more idiomatic rust
---------
Co-authored-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
Diffstat (limited to 'src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap')
-rw-r--r-- | src/tests/cases/snapshots/bandwhich__tests__cases__ui__multiple_processes_with_multiple_connections.snap | 32 |
1 files changed, 6 insertions, 26 deletions
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 6038020..233bb7c 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 @@ -4,7 +4,7 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR --- 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) │ +│Process PID Connections Rate (Up / Down) ││Remote Address Connections Rate (Up / Down) │ │ ││ │ │ ││ │ │ ││ │ @@ -57,10 +57,10 @@ IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B 98. 0B - 5 1 0.00B / 28.00B 3.3.3.3 1 0.00B / 28.00B - 4 1 0.00B / 26.00B 2.2.2.2 1 0.00B / 26.00B - 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B - 2 1 0.00B / 21.00B 4.4.4.4 1 0.00B / 21.00B + 5 5 1 0.00B / 28.00B 3.3.3.3 1 0.00B / 28.00B + 4 4 1 0.00B / 26.00B 2.2.2.2 1 0.00B / 26.00B + 1 1 1 0.00B / 22.00B 1.1.1.1 1 0.00B / 22.00B + 2 2 1 0.00B / 21.00B 4.4.4.4 1 0.00B / 21.00B @@ -84,24 +84,4 @@ IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B <interface_name>:4435 => 3.3.3.3:1337 (tcp) 5 0.00B / 28.00B <interface_name>:4434 => 2.2.2.2:54321 (tcp) 4 0.00B / 26.00B <interface_name>:443 => 1.1.1.1:12345 (tcp) 1 0.00B / 22.00B - <interface_name>:4432 => 4.4.4.4:1337 (tcp) 2 0.00B / 21.00B - - - - - - - - - - - - - - - - - - - - + <interface_name>:4432 => 4.4.4.4:1337 (tcp) 2 0.00B / 21.00B |