fix: Correct calculation of packet sent time

This commit is contained in:
zugz (tox) 2022-03-27 00:00:00 +00:00 committed by iphydf
parent e4558a287c
commit c38f21f888
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -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) {