Fix stupid bug

This commit is contained in:
Quentin Dufour 2019-03-27 18:29:19 +01:00
parent ca8eddc0ad
commit 6c276ae3c7

View file

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