Skip to content

Fix RTT truncation, min/max initialization, and timeout packet counting.#48

Open
leviskualo wants to merge 1 commit into
denilsonsa:masterfrom
leviskualo:fix-core-bugs
Open

Fix RTT truncation, min/max initialization, and timeout packet counting.#48
leviskualo wants to merge 1 commit into
denilsonsa:masterfrom
leviskualo:fix-core-bugs

Conversation

@leviskualo

Copy link
Copy Markdown

The int($4) to $4 + 0 fix (prevents sub-millisecond RTTs from being truncated to 0ms).
The first_received boolean flag (fixes the bug where min_rtt and max_rtt stay stuck at 0 if the first packet is dropped).
The while ( last_seq < seq ) loop in the macOS timeout branch (ensures multiple dropped packets are counted correctly).
The stty size < /dev/tty fix (makes terminal size detection work on Linux, rather than silently failing with the macOS-only -f flag).

Removed outdated comments and TODOs from the script, added new parameters for audible ping and time printing, and improved argument parsing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant