summaryrefslogtreecommitdiff
path: root/parallel.c
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-23 15:47:16 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-23 15:47:16 -0500
commit7ef2ddb70209ae8f7bd2941787e87fe168965715 (patch)
treeab1e2833fe84dfdb9b83850f01a7416c6b5bcc1c /parallel.c
parent4665e4fdca863b8346ed2cc39304f2c763e183a9 (diff)
downloadmoreutils-7ef2ddb70209ae8f7bd2941787e87fe168965715.tar.gz
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.
Diffstat (limited to 'parallel.c')
-rw-r--r--parallel.c2
1 files changed, 1 insertions, 1 deletions
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;