From fad97e12da1ab12fb72b15febf4d5472824dcb17 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 29 Jan 2015 12:49:02 +0100 Subject: [PATCH] ntp: fix maxdelayratio test This was broken in commit 8fbfe55e. --- ntp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index 8781427..6550f8c 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1243,7 +1243,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins minimum one currently in the stats data register is less than an administrator-defined value */ testB = inst->max_delay_ratio <= 1.0 || - delay / SRC_MinRoundTripDelay(inst->source) > inst->max_delay_ratio; + delay / SRC_MinRoundTripDelay(inst->source) <= inst->max_delay_ratio; /* Test C requires that the ratio of the increase in delay from the minimum one in the stats data register to the standard deviation of the offsets