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__truncate_long_hostnames.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__truncate_long_hostnames.snap')
-rw-r--r-- | src/tests/cases/snapshots/bandwhich__tests__cases__ui__truncate_long_hostnames.snap | 30 |
1 files changed, 4 insertions, 26 deletions
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 ad558af..e56e3e0 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 @@ -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,8 +57,8 @@ IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B 45. 0B / 49.00B - 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B - 5 1 17.00B / 18.00B 3.3.3.3 1 17.00B / 18.00B + 1 1 1 28.00B / 30.00B 1.1.1.1 1 28.00B / 30.00B + 5 5 1 17.00B / 18.00B 3.3.3.3 1 17.00B / 18.00B @@ -134,26 +134,4 @@ IF: interface_name | Total Rate (Up / Down): 0.00B / 0.00B i am.not.too.long:12345 (tcp) 31 2 - i am.an.obnoxiosuly.long.hostname.why.would.anyone.do.this.really.i.ask:1337 (tcp) 22 27 - - - - - - - - - - - - - - - - - - - - - - + i am.an.obnoxiosuly.long.hostname.why.would.anyone.do.this.really.i.ask:1337 (tcp) 22 27 |