fix(measurement): only consecutive fails matter

This commit is contained in:
2025-09-08 23:50:41 +01:00
parent de619583ea
commit 81f204f933

View File

@@ -127,6 +127,8 @@ func (r *MeasurementRunner) runQueries(dnsClient client.DNSClient, upstream stri
if metric.ResponseCode == "ERROR" {
failureCount++
} else if metric.ResponseCode == "NOERROR" {
failureCount = 0
}
if err := writer.WriteMetric(metric); err != nil {