Skip to content

Commit

Permalink
fix: Correct calculation of packet sent time
Browse files Browse the repository at this point in the history
  • Loading branch information
zugz committed Mar 27, 2022
1 parent 6749974 commit b191a9f
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit b191a9f

Please sign in to comment.