summaryrefslogtreecommitdiffstats
path: root/src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap
diff options
context:
space:
mode:
authorcyqsimon <28627918+cyqsimon@users.noreply.github.com>2023-10-19 16:55:04 +0800
committerGitHub <noreply@github.com>2023-10-19 16:55:04 +0800
commit0c4987aa86dc5210c11024b74f3f8947ba1358ac (patch)
treed133948be851cb4209a006237dd99fda25d1909c /src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap
parentd9cc84b3732fe9cb0c819b93d67d2a6420f6a065 (diff)
Table formatting logic overhaul (#305)
* Table formatting logic overhaul - Columns now auto-expand and auto-shrink proportionally - Data column selection logic is now set per-table - Necessary boilerplate added to allow tables with more (or fewer) columns in the future * Better naming: `TableLayout` -> `DisplayLayout` * Fix clippy complaints * Optimise layout cutoff widths - These values are pretty much arbitrary. I'm open to further optimising them in the future. * Updated test snapshots to match new layout settings * Remove unnecessary logging * Correct `debug_fn` impl for `column_selector` * Further optimise bandwidth column display * Update test snapshots * Layout width preset minor adjustment
Diffstat (limited to 'src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap')
-rw-r--r--src/tests/cases/snapshots/bandwhich__tests__cases__ui__two_packets_only_connections.snap8
1 files changed, 4 insertions, 4 deletions
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 7420563..087fddb 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,9 +2,9 @@
source: src/tests/cases/ui.rs
expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR)
---
- Total Up / Down: 0Bps / 0Bps
+ Total Rate (Up / Down): 0.00B / 0.00B
┌Utilization by connection───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
-│Connection Process Up / Down │
+│Connection Process Rate (Up / Down) │
│ │
│ │
│ │
@@ -54,10 +54,10 @@ expression: terminal_draw_events.lock().unwrap().join(SNAPSHOT_SECTION_SEPARATOR
Press <SPACE> to pause. Use <TAB> to rearrange tables. (DNS queries hidden).
--- SECTION SEPARATOR ---
- 24Bps / 25Bps
+ 24. 0B / 25.00B
- <interface_name>:443 => 1.1.1.1:12345 (tcp) 1 24Bps / 25Bps
+ <interface_name>:443 => 1.1.1.1:12345 (tcp) 1 24.00B / 25.00B