From e02b5111ad3b1d52ee28bf2c9e93a31ed7196c3d Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sun, 2 Jan 2011 16:04:57 -0500 Subject: [PATCH] Off-by-one error --- queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue.c b/queue.c index 6d96a35..9003f45 100644 --- a/queue.c +++ b/queue.c @@ -139,7 +139,7 @@ static void shoveller(void *qv) { queue_append(&q->waiter_q, &examined); enqueue(&q->waiter_q, sub); - if (burst_count > 10000) { + if (burst_count >= 10000) { end_burst(q, &burst_count, total_count); yield(); }