From daa478f1f5e506b60cec2c1391610e6281caaa09 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 20:51:16 +1100 Subject: [PATCH] Off by one on headroom --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index f31dac4f..c154713e 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1251,7 +1251,7 @@ static void reassess_headroom(sdata_t *sdata, const proxy_t *proxy) } ck_runlock(&sdata->instance_lock); - if (headroom < 0) + if (headroom < 1) generator_recruit(sdata->ckp); }