If load == maxload, it would not start a job, but also not sleep. That
could, in theory, make parallel spin for a bit.
Also, clarify docs.
curjobs--;
}
- if (maxload > 0 && load > maxload) {
+ if (maxload > 0 && load >= maxload) {
int r;
sleep(1); /* XXX We should have a better
* heurestic than this */
<term><option>-l maxload</option></term>
<listitem>
<para>Avoid starting new jobs when
- the system's load average is higher
- than the specified limit.</para>
+ the system's load average is not below
+ the specified limit.</para>
</listitem>
</varlistentry>