summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Weiss <fiesh@zefix.tv>2018-03-12 17:53:53 +0100
committerShawn Landden <slandden@gmail.com>2018-03-12 10:30:57 -0700
commitab03918029cb3a6727e27ca13b58608474bdd822 (patch)
tree4e403788b0c183d91d3ec13421e0d8cb9bc40e7d
parent002e68b766ccd7ad05551e67d162b71a7a773d0d (diff)
downloaddistcc-git-ab03918029cb3a6727e27ca13b58608474bdd822.tar.gz
set jobs to n_cpus + 2, not 4 * n_cpus
-rw-r--r--src/zeroconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index a0aad06..1552d8c 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -279,7 +279,7 @@ static void resolve_reply(
avahi_free(value);
}
- /* Look for the number of jobs in TXT RRs, and if not found, then set n_jobs = 4 * n_cpus */
+ /* Look for the number of jobs in TXT RRs, and if not found, then set n_jobs = n_cpus + 2 */
for (i = txt; i; i = i->next) {
char *key, *value;
@@ -288,7 +288,7 @@ static void resolve_reply(
if (!strcmp(key, "jobs"))
if ((h->n_jobs = atoi(value)) <= 0)
- h->n_jobs = 4 * h->n_cpus;
+ h->n_jobs = h->n_cpus + 2;
avahi_free(key);
avahi_free(value);