Commit e33293fd authored by Gijs Peskens's avatar Gijs Peskens
Browse files

RTT is stored in MS on peer

parent 750436f1
Pipeline #49787 passed with stages
in 1 minute and 9 seconds
......@@ -1140,7 +1140,7 @@ void rist_retry_enqueue(struct rist_sender *ctx, uint32_t seq, struct rist_peer
rist_log_priv(&ctx->common, RIST_LOG_DEBUG,
"Nack request for seq %" PRIu32 " with delta %" PRIu64 "ms, age %" PRIu64 "ms and rtt_min %" PRIu32 "\n",
buffer->seq, delta, age_ticks / RIST_CLOCK, peer->config.recovery_rtt_min);
uint64_t rtt = peer->last_mrtt / RIST_CLOCK;
uint64_t rtt = peer->last_mrtt;
if (peer->config.recovery_rtt_min > rtt)
rtt = peer->config.recovery_rtt_min;
if (delta < rtt)
......@@ -1165,7 +1165,7 @@ void rist_retry_enqueue(struct rist_sender *ctx, uint32_t seq, struct rist_peer
//We work backwards from the write index till we either find a retry with same peer & seq
//or it's too old to matter (older than 1 RTT ago)
index = (ctx->sender_retry_queue_write_index -1) & (ctx->sender_retry_queue_size -1);
uint64_t rtt = peer->last_mrtt / RIST_CLOCK;
uint64_t rtt = peer->last_mrtt;
if (peer->config.recovery_length_min > rtt)
rtt = peer->config.recovery_length_min;
struct rist_retry *lookup = NULL;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment