From 7ef2ddb70209ae8f7bd2941787e87fe168965715 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 23 Feb 2010 15:47:16 -0500 Subject: [PATCH] allow -l 0 Now that -l is a decimal value, it makes sense for -l 0.001 and -l 0 to do effectively the same thing. --- parallel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parallel.c b/parallel.c index c3b9d67..72f1426 100644 --- a/parallel.c +++ b/parallel.c @@ -202,7 +202,7 @@ int main(int argc, char **argv) { getloadavg(&load, 1); if ((maxjobs == 0 || curjobs < maxjobs) && - (maxload <= 0 || load < maxload)) { + (maxload < 0 || load < maxload)) { if (argsatonce > arglen - argidx) argsatonce = arglen - argidx; -- 2.39.5