summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2020-09-02fix(formatting): improve accuracy (#178)Aram Drevekenin
* fix(formatting): improve accuracy * style(format): line length * fix(formatting): use mebi/gibi/tibi bytes * style(format): fmt
2020-09-01hotfix(truncation): display long uneven hostnames properly (fixes small ↵Aram Drevekenin
issue in #177)
2020-09-01fix(formatting): panic when slice str (#177)zxlzy
* fix panic when slice str * copy code from diskonaut * typo fix
2020-07-14feat(raw): add delimiters to raw output (#175)sigmaSd
2020-07-13fix(rawmode): honor RenderOpts flag when using raw mode (#174)sigmaSd
2020-05-23Implement style feedbackRupert Rutledge
Thanks @TheLostLambda
2020-05-20Merge remote-tracking branch 'origin/master' into issue-163-elapsed-timeRupert Rutledge
Conflicts: src/display/components/layout.rs src/display/ui.rs src/main.rs
2020-05-19Use correct elapsed time when resizing the terminalRupert Rutledge
- Split the logic for determining the elapsed time into a function as it was called in different placed in main.rs.
2020-05-18Rename the total_bandwidth file for clarityRupert Rutledge
2020-05-17feat(layout): 'Window' ordering ability (#118)Louis Lesage
* Window ordering ability Added ability to change display order of the windows using tab. Added a help tooltip. * fix redundant clone * fix fmt check * cargo fmt fix 2 * Fixed help layout and added tests * Fix fmt check
2020-05-16Deal with clippy linting issuesRupert Rutledge
2020-05-16Merge remote-tracking branch 'origin/master' into issue-163-elapsed-timeRupert Rutledge
2020-05-16Altering the snapshots for tests that are affected by new duration codeRupert Rutledge
Simply replacing the "1 \n" write events with "2 \n" when we check the snapshots to make them consistent. There may still be issues with timing in the tests, but can serve as a stop-gap.
2020-05-16Fix issue of duration being shown on non -t invocationsRupert Rutledge
2020-05-16Address review feedbackRupert Rutledge
Now selectively printing out the duration of the capture based on calculating the exact length of the strings and the width of the terminal window. This has simplified this code substantially as well, no longer having to split the header into parts (currently we are printing to the same rect, but left and right aligned for the respective parts of the header).
2020-05-09Add days to the duration printRupert Rutledge
2020-05-09Fix silly issue with altering logicRupert Rutledge
- Needed to set max number of columns to 3.
2020-05-09Simplify logic in the header_parts functionRupert Rutledge
2020-05-09Split the header into different parts based on size of terminalRupert Rutledge
1, 2, or 3 sections will be used based on differing widths.
2020-05-09Split the header row into 3 columnsRupert Rutledge
We now have the bandwidth data, paused status and duration in separate columns.
2020-05-08fix(formatting): add terabytes as a display unit (#168)Brooks Rady
2020-05-08Address PR feedback.Rupert Rutledge
- Only show the capture time on use of the utilization flag - Make colour consistent in header - Prioritize rendering of the Bandwidth over the duration - Reduce length of time description
2020-05-03style(lint): make clippy happy on all channelsAram Drevekenin
2020-05-03style(lint): make clippy happyAram Drevekenin
2020-05-03chore(deps): remove pnet_bandwhich_fork and upgrade to latest pnet + ↵Aram Drevekenin
packet_builder releases
2020-04-26Add space to elapsed time to mirror other printRupert Rutledge
The bandwidth print has a leading space, so this should have a trailing space.
2020-04-26Running cargo fmtRupert Rutledge
2020-04-26Change from Mutex to RwLock around elapsed time variablesRupert Rutledge
A RwLock should be more performant.
2020-04-26Split Header rendering into different sectionsRupert Rutledge
- Rename Bandwidth to HeaderDetails to indicate the added information it now contains. - Split the rendering function for the header into its constituent parts
2020-04-26Running cargo fmtRupert Rutledge
2020-04-26Working implementation of the elapsed time of the captureRupert Rutledge
This elapsed time pauses during pause sections and restarts on resumption. Ongoing: - Consider a RwLock instead of a Mutex for the elapsed time and cumulative time values, as these are only written by the UI thread and read elsewhere. - Combine the cumulative time and start times into a struct for clarity. - Separate out the elapsed time from the Bandwidth, as they are separate considerations, leading to altering the rendering of the header to write bandwidth and elapsed time separately.
2020-04-05fix(tests): update total-utilization and hide-dns testsAram Drevekenin
2020-04-05feat(network): add accumlated usage (#155)Brooks Rady
* Add accumlated usage * Fixed a nasty performace leak * Fix a silly reverse-ordering bug * Address some feedback * Finished some reorganizing * Another silly reversal bug * Let the test cases run * Most tests are working * Fix some formatting that got left behind * Fix the rest of the tests * Add some new tests to cover the total mode * Whoops, a double newline
2020-04-05feat(network): hide dns queries by default (#161)Oleh
* add filter by dns queries * update snapshots with cargo fmt * add tests with filtering improvement
2020-03-31Fix the loss of large, merged packets (#158)Brooks Rady
2020-03-01fix(error-handling): add custom error handling (#104)yossarian
* Initial * Add errors file * Update * Add error message * Update * Add kind method * Update error kind * Update get_datalink_channel * Update unused var * Initial * Add errors file * Update * Add error message * Update * Add kind method * Update error kind * Update error message * Update error name * Update error messages * Update message * Update * Update error message * format * format2 * update * Update error checking * format * refactor * reduce message * remove unused code * fix lint * wip * add multiline * add handle_errors * update fold * update * clippy * Update * spaces * fix(error-handling): display interface names in errors * style(format): rustfmt Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-01-25feat(layout): new layout (#139)Aram Drevekenin
2020-01-18Merge pull request #135 from zhangxp1998/setcapKelvin Zhang
Update description about capabilities needed
2020-01-18Update description about capabilities neededKelvin Zhang
2020-01-18Merge pull request #132 from jcfvalente/list-unknownKelvin Zhang
Show UNKNOWN in the process list
2020-01-18Declare and initialize data_for_process in one step. Applied suggested changes.José
2020-01-18fix(cli): collect table args (#134)Aram Drevekenin
2020-01-17Adds unknown to the process listJosé
2020-01-16Fix VPN traffice not displayed bugKelvin Zhang
2020-01-16feat(ui): select windows to display from CLI (#107)Simone Robutti
* added first version (no tests) * fixed layout * added support for 2 windows * comments * breathing windows * added tests * format * fixed rebase * review * added more tests * simplified table creation * fix(table): do not overflow on max size Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-01-14Merge pull request #70 from zhangxp1998/ipv6ebroto
Support Ipv6
2020-01-14Address code review commnetsKelvin Zhang
2020-01-14fix(network): bug that upload speed is not tabulated correctly (#116)Kelvin Zhang
2020-01-14fix(ui-state): do not overcalculate bandwidth and connections (#114)Aram Drevekenin
* fix(ui-state): do not overcalculate bandwidth and connections * fix(ui-state): style and bug * style(format): make clippy happy
2020-01-13fix(dns): display a more informative message in case we can't resolveEduardo Broto
Tested in Linux. When offline, /etc/resolve.conf is a broken symlink, so opening it yields an IO error. It should work similarly in other OSs as the resolver is OS-agnostic. Before, the message was simply: Error: io error. After this change, a more informative message is shown.