Fix count logic
This commit is contained in:
parent
0395746c28
commit
1f7256ef5e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue