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: Correct calculation of packet sent time #2195

Merged
merged 2 commits into from
Mar 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion other/bootstrap_daemon/docker/tox-bootstrapd.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3db2672c5fb3593c5582c8004cd2e14ea775510e5ca5a088e6b1c4fff7b8c373 /usr/local/bin/tox-bootstrapd
4453168947518175a5500c9d8d08cd83b0e054486da7297b2a9e0e146aadc743 /usr/local/bin/tox-bootstrapd
2 changes: 1 addition & 1 deletion toxcore/net_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ static int handle_request_packet(Mono_Time *mono_time, Packets_Array *send_array
uint32_t requested = 0;

const uint64_t temp_time = current_time_monotonic(mono_time);
uint64_t l_sent_time = -1;
uint64_t l_sent_time = 0;

for (uint32_t i = send_array->buffer_start; i != send_array->buffer_end; ++i) {
if (length == 0) {
Expand Down