Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect requirements.txt and latency calculations when old ping replies come in after new pings are sent. #118

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

josiah-zx
Copy link

Fixes issue #114 and fixes issue #116

#116: Updated requirements pexpect version to 4.8.0 rather than 4.0.8

#114: Fixed a bug in which the latency in ms would be calculated incorrectly where upon receiving a reply, the latency since last packet was sent (not necessarily the packet the reply is for) would be calculated and displayed.

Packet send times are now stored and retrieved per packet sequence number, meaning latency calculations will use them instead of whenever the most recent packet was sent out. This retains accurate measurements among poor network conditions where packets arrive out of order (like in #114) as well as the case where the delay between pings is shorter than the real-world latency (such as pinging a JP server from US, where ping is over 200ms and ping delay is only 200).

This is my first open source contribution, any feedback or changes are welcome.

alessandromaggio and others added 3 commits October 25, 2022 11:31
* fix(icmp.py): ICMP header format string

All values in the struct should be unsigned.

* pylint issues resolved

Fixed a bunch of pylint issues

* First Readme push headers updated.

* Update README.md

* Update README.md

* UMLs created.

* UMLs created.

* Folder Structure Created.

* backticks added.

* Supporting words added.

* Grammer fix

* Code Styles section finished.

* Fix made

* Fix made

* Readme fixed.

* Readme fixed.

* Ready for pull request.

* Finally ready for pull request.

* Testcase added,

* feat: integrate alessandromaggio#89, alessandromaggio#92, and alessandromaggio#93

Allow count greater than 16-bit, fix pylint issues, update and expand readme

Co-authored-by: David A. Bell <[email protected]>
Co-authored-by: Mark Mayo <[email protected]>
Co-authored-by: Aleksa Zatezalo <[email protected]>
Co-authored-by: Aleksa Zatezalo <[email protected]>
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.

2 participants