Skip to content

Commit c38f21f

Browse files
zugziphydf
authored andcommitted
fix: Correct calculation of packet sent time
1 parent e4558a2 commit c38f21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

toxcore/net_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ static int handle_request_packet(Mono_Time *mono_time, Packets_Array *send_array
10151015
uint32_t requested = 0;
10161016

10171017
const uint64_t temp_time = current_time_monotonic(mono_time);
1018-
uint64_t l_sent_time = -1;
1018+
uint64_t l_sent_time = 0;
10191019

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

0 commit comments

Comments
 (0)