From: Josh Soref Date: Tue, 19 Mar 2019 17:12:33 +0000 (-0400) Subject: spelling: successful X-Git-Tag: dnsdist-1.4.0-alpha1~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=853faf61a65e4db498bc6227e0f63ed6283376e5;p=thirdparty%2Fpdns.git spelling: successful --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index f2dfa39b21..daf947bfab 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1965,8 +1965,8 @@ static void healthChecksThread() if (!dss->upStatus) { /* we were marked as down */ - dss->consecutiveSuccesfulChecks++; - if (dss->consecutiveSuccesfulChecks < dss->minRiseSuccesses) { + dss->consecutiveSuccessfulChecks++; + if (dss->consecutiveSuccessfulChecks < dss->minRiseSuccesses) { /* if we need more than one successful check to rise and we didn't reach the threshold yet, let's stay down */ @@ -1976,7 +1976,7 @@ static void healthChecksThread() } else { /* check failed */ - dss->consecutiveSuccesfulChecks = 0; + dss->consecutiveSuccessfulChecks = 0; if (dss->upStatus) { /* we are currently up */ @@ -2002,7 +2002,7 @@ static void healthChecksThread() dss->upStatus = newState; dss->currentCheckFailures = 0; - dss->consecutiveSuccesfulChecks = 0; + dss->consecutiveSuccessfulChecks = 0; if (g_snmpAgent && g_snmpTrapsEnabled) { g_snmpAgent->sendBackendStatusChangeTrap(dss); } diff --git a/pdns/dnsdist.hh b/pdns/dnsdist.hh index 925d1d0d1d..d2c664e413 100644 --- a/pdns/dnsdist.hh +++ b/pdns/dnsdist.hh @@ -710,7 +710,7 @@ struct DownstreamState uint16_t xpfRRCode{0}; uint16_t checkTimeout{1000}; /* in milliseconds */ uint8_t currentCheckFailures{0}; - uint8_t consecutiveSuccesfulChecks{0}; + uint8_t consecutiveSuccessfulChecks{0}; uint8_t maxCheckFailures{1}; uint8_t minRiseSuccesses{1}; StopWatch sw;