This commit is contained in:
baofengqi
2025-06-18 14:17:55 +08:00
committed by Rico
parent c2b61e52f0
commit 10ae1ae1a2
@@ -45,9 +45,9 @@ public class MySQLDelayDetector extends MySQLDetector {
long logic = dbGroup.getLogicTimestamp().get();
long result = logic - delay;
if (result >= 0) {
int delayPeriodMillis = dbGroup.getDbGroupConfig().getDelayPeriodMillis();
long delayVal = 0;
if (result > 0) {
int delayPeriodMillis = dbGroup.getDbGroupConfig().getDelayPeriodMillis();
delayVal = (result * delayPeriodMillis) + (delayPeriodMillis / 2);
}
if (delayThreshold > 0 && delayVal > delayThreshold) {