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 */
}
else {
/* check failed */
- dss->consecutiveSuccesfulChecks = 0;
+ dss->consecutiveSuccessfulChecks = 0;
if (dss->upStatus) {
/* we are currently up */
dss->upStatus = newState;
dss->currentCheckFailures = 0;
- dss->consecutiveSuccesfulChecks = 0;
+ dss->consecutiveSuccessfulChecks = 0;
if (g_snmpAgent && g_snmpTrapsEnabled) {
g_snmpAgent->sendBackendStatusChangeTrap(dss);
}
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;