Fix count logic

This commit is contained in:
Quentin 2019-05-24 15:23:21 +02:00
parent 0395746c28
commit 1f7256ef5e

View file

@ -16,7 +16,7 @@ void free_naive(void* app_ctx) {
void iterate(int* fd, GQueue* q, int* waiting_count) {
fprintf(stderr, "Queue for fd=%d has length=%d\n", *fd, q->length);
waiting_count += q->length;
*waiting_count += q->length;
}
void iterate2(int* fd, struct buffer_packet *bp, gpointer user_data) {