From: Remi Gacogne Date: Thu, 28 Mar 2019 17:30:12 +0000 (+0100) Subject: rec: Make sure that distribution-load-factor is >= 1.0 if set X-Git-Tag: dnsdist-1.4.0-alpha1~38^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=078be17f3c150abed2ae87dfe771ef479f3137ef;p=pdns rec: Make sure that distribution-load-factor is >= 1.0 if set --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 065833eb5..2b949abfb 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3774,6 +3774,10 @@ static int serviceMain(int argc, char*argv[]) g_statisticsInterval = ::arg().asNum("statistics-interval"); s_balancingFactor = ::arg().asDouble("distribution-load-factor"); + if (s_balancingFactor != 0.0 && s_balancingFactor < 1.0) { + s_balancingFactor = 0.0; + g_log<