mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
fix: Correct calculation of packet sent time
This commit is contained in:
parent
e4558a287c
commit
c38f21f888
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user