Skip to content

更准确的网络丢包数据以及更快的数据收敛 #100

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

Merged
merged 3 commits into from
Jul 5, 2021

Conversation

kings-way
Copy link
Contributor

@kings-way kings-way commented Jun 18, 2021

  1. 修改丢包统计逻辑,只统计最近 N 个包的结果;在网络情况改变的时候,数据可以更快地收敛,准确反映即时网络状况;
  2. 可配置丢包统计的时长/数量,默认最近 100 个,用户可修改 PING_PACKET_HISTORY_LEN 值来选择合适的统计时长;
  3. 可配置网络测试的 v4/v6 协议优先级,默认 v4 解析优先,用户可修改 PROBE_PROTOCOL_PREFER = "ipv6"

@cppla cppla merged commit 6c57044 into cppla:master Jul 5, 2021
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