From 6c276ae3c7b36a9690a13330637f1515d35cc1d6 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 27 Mar 2019 18:29:19 +0100 Subject: [PATCH] Fix stupid bug --- src/algo_rr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algo_rr.c b/src/algo_rr.c index 302565e..737fdd4 100644 --- a/src/algo_rr.c +++ b/src/algo_rr.c @@ -211,7 +211,7 @@ void rr_deliver(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, struct // 2. Get the buffer and update rr state struct buffer_packet* bp = get_app_buffer (app_ctx, &dp->idx); int idx_real = bp->ip.ap.str.id % PACKET_BUFFER_SIZE; - rr->wait[idx_real].on = 0; + rr->real[idx_real].on = 0; //printf("Selected url %s for pkt %d to be delivered\n", fdinfo->url, bp->ip.ap.str.id); // 3. We update our cursor