On 11/19/22 11:11 AM, Stefan Roesch wrote:
+void recordRTT(struct ctx *ctx) +{ + struct timespec startTs = ctx->ts; + + // Send next ping. + sendPing(ctx); + + // Store round-trip time. + ctx->rtt[ctx->rtt_index] = diffTimespec(&ctx->ts, &startTs); + ctx->rtt_index++; +}
Use tabs for indentation, not spaces. -- Ammar Faizi